]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
cleanup: Use consistent 4-space indent
authorFlorian Müllner <fmuellner@gnome.org>
Sun, 6 Aug 2023 23:45:22 +0000 (01:45 +0200)
committerMarge Bot <marge-bot@gnome.org>
Wed, 9 Aug 2023 15:10:37 +0000 (15:10 +0000)
This is another bit where we've made good progress, and just need
a final push to complete the transition.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2866>

65 files changed:
js/gdm/loginDialog.js
js/gdm/realmd.js
js/gdm/util.js
js/misc/gnomeSession.js
js/misc/history.js
js/misc/inputMethod.js
js/misc/introspect.js
js/misc/loginManager.js
js/misc/permissionStore.js
js/misc/systemActions.js
js/misc/util.js
js/misc/weather.js
js/ui/accessDialog.js
js/ui/altTab.js
js/ui/audioDeviceSelection.js
js/ui/background.js
js/ui/boxpointer.js
js/ui/closeDialog.js
js/ui/components/automountManager.js
js/ui/components/autorunManager.js
js/ui/components/keyring.js
js/ui/components/networkAgent.js
js/ui/components/telepathyClient.js
js/ui/ctrlAltTab.js
js/ui/dash.js
js/ui/dnd.js
js/ui/endSessionDialog.js
js/ui/ibusCandidatePopup.js
js/ui/kbdA11yDialog.js
js/ui/keyboard.js
js/ui/layout.js
js/ui/lightbox.js
js/ui/lookingGlass.js
js/ui/magnifier.js
js/ui/main.js
js/ui/messageList.js
js/ui/messageTray.js
js/ui/modalDialog.js
js/ui/mpris.js
js/ui/notificationDaemon.js
js/ui/osdMonitorLabeler.js
js/ui/osdWindow.js
js/ui/overview.js
js/ui/padOsd.js
js/ui/panel.js
js/ui/popupMenu.js
js/ui/remoteSearch.js
js/ui/screenShield.js
js/ui/screenshot.js
js/ui/scripting.js
js/ui/search.js
js/ui/sessionMode.js
js/ui/shellDBus.js
js/ui/shellEntry.js
js/ui/shellMountOperation.js
js/ui/status/accessibility.js
js/ui/status/keyboard.js
js/ui/status/location.js
js/ui/status/thunderbolt.js
js/ui/userWidget.js
js/ui/windowManager.js
js/ui/workspace.js
js/ui/workspaceThumbnail.js
js/ui/xdndHandler.js
lint/eslintrc-legacy.yml

index a9c6c997d19fc039cd2cf5e7d5ab9b8d99a5e74d..ca70a3c808b8a06ef7621ed167f14d105b14998d 100644 (file)
@@ -70,8 +70,9 @@ export const UserListItem = GObject.registerClass({
         this._userWidget = new UserWidget.UserWidget(this.user);
         layout.add(this._userWidget);
 
-        this._userWidget.bind_property('label-actor', this, 'label-actor',
-                                       GObject.BindingFlags.SYNC_CREATE);
+        this._userWidget.bind_property('label-actor',
+            this, 'label-actor',
+            GObject.BindingFlags.SYNC_CREATE);
 
         this._timedLoginIndicator = new St.Bin({
             style_class: 'login-dialog-timed-login-indicator',
@@ -168,8 +169,9 @@ const UserList = GObject.registerClass({
             x_expand: true,
             y_expand: true,
         });
-        this.set_policy(St.PolicyType.NEVER,
-                        St.PolicyType.AUTOMATIC);
+        this.set_policy(
+            St.PolicyType.NEVER,
+            St.PolicyType.AUTOMATIC);
 
         this._box = new St.BoxLayout({
             vertical: true,
@@ -342,7 +344,7 @@ const SessionMenuButton = GObject.registerClass({
         });
 
         this._manager = new PopupMenu.PopupMenuManager(this._button,
-                                                       {actionMode: Shell.ActionMode.NONE});
+            {actionMode: Shell.ActionMode.NONE});
         this._manager.addMenu(this._menu);
 
         this._button.connect('clicked', () => this._menu.toggle());
@@ -432,13 +434,13 @@ export const LoginDialog = GObject.registerClass({
         this._settings = new Gio.Settings({schema_id: GdmUtil.LOGIN_SCREEN_SCHEMA});
 
         this._settings.connect(`changed::${GdmUtil.BANNER_MESSAGE_KEY}`,
-                               this._updateBanner.bind(this));
+            this._updateBanner.bind(this));
         this._settings.connect(`changed::${GdmUtil.BANNER_MESSAGE_TEXT_KEY}`,
-                               this._updateBanner.bind(this));
+            this._updateBanner.bind(this));
         this._settings.connect(`changed::${GdmUtil.DISABLE_USER_LIST_KEY}`,
-                               this._updateDisableUserList.bind(this));
+            this._updateDisableUserList.bind(this));
         this._settings.connect(`changed::${GdmUtil.LOGO_KEY}`,
-                               this._updateLogo.bind(this));
+            this._updateLogo.bind(this));
 
         this._textureCache = St.TextureCache.get_default();
         this._textureCache.connectObject('texture-file-changed',
@@ -833,11 +835,12 @@ export const LoginDialog = GObject.registerClass({
         this._logoBin.destroy_all_children();
         const resourceScale = this._logoBin.get_resource_scale();
         if (this._logoFile) {
-            let scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
-            this._logoBin.add_child(this._textureCache.load_file_async(this._logoFile,
-                                                                       -1, -1,
-                                                                       scaleFactor,
-                                                                       resourceScale));
+            const scaleFactor = St.ThemeContext.get_for_stage(global.stage).scale_factor;
+            const texture = this._textureCache.load_file_async(
+                this._logoFile,
+                -1, -1,
+                scaleFactor, resourceScale);
+            this._logoBin.add_child(texture);
         }
     }
 
@@ -1262,9 +1265,9 @@ export const LoginDialog = GObject.registerClass({
 
     open() {
         Main.ctrlAltTabManager.addGroup(this,
-                                        _('Login Window'),
-                                        'dialog-password-symbolic',
-                                        {sortGroup: CtrlAltTab.SortGroup.MIDDLE});
+            _('Login Window'),
+            'dialog-password-symbolic',
+            {sortGroup: CtrlAltTab.SortGroup.MIDDLE});
         this.activate();
 
         this.opacity = 0;
index 09c19e12563141ddb344991159dc871734211260..b13b01b198886f8ee591fb95ce910c407b9f1bd6 100644 (file)
@@ -19,9 +19,9 @@ export class Manager extends Signals.EventEmitter {
         super();
 
         this._aggregateProvider = Provider(Gio.DBus.system,
-                                           'org.freedesktop.realmd',
-                                           '/org/freedesktop/realmd',
-                                           this._reloadRealms.bind(this));
+            'org.freedesktop.realmd',
+            '/org/freedesktop/realmd',
+            this._reloadRealms.bind(this));
         this._realms = {};
         this._loginFormat = null;
 
@@ -41,9 +41,9 @@ export class Manager extends Signals.EventEmitter {
 
         for (let i = 0; i < realmPaths.length; i++) {
             Realm(Gio.DBus.system,
-                  'org.freedesktop.realmd',
-                  realmPaths[i],
-                  this._onRealmLoaded.bind(this));
+                'org.freedesktop.realmd',
+                realmPaths[i],
+                this._onRealmLoaded.bind(this));
         }
     }
 
index c304c706af8651fe92a27e44ddda124414844a6e..6048bc58059772545105ca5bf8b2a243f194c3c7 100644 (file)
@@ -109,7 +109,7 @@ export class ShellUserVerifier extends Signals.EventEmitter {
 
         this._settings = new Gio.Settings({schema_id: LOGIN_SCREEN_SCHEMA});
         this._settings.connect('changed',
-                               this._updateDefaultService.bind(this));
+            this._updateDefaultService.bind(this));
         this._updateDefaultService();
 
         this._fprintManager = new FprintManagerProxy(Gio.DBus.system,
index 0ff179c199e9b26992f39a9cd6fed5c609dd0387..29a287d98a6b056f0f4045cdb1effdbb149058c2 100644 (file)
@@ -22,8 +22,10 @@ const PresenceProxy = Gio.DBusProxy.makeProxyWrapper(PresenceIface);
  * @returns {Gio.DBusProxy}
  */
 export function Presence(initCallback, cancellable) {
-    return new PresenceProxy(Gio.DBus.session, 'org.gnome.SessionManager',
-                             '/org/gnome/SessionManager/Presence', initCallback, cancellable);
+    return new PresenceProxy(Gio.DBus.session,
+        'org.gnome.SessionManager',
+        '/org/gnome/SessionManager/Presence',
+        initCallback, cancellable);
 }
 
 // Note inhibitors are immutable objects, so they don't
index 613ce612dbb51914e68aed08db28e34694554069..db781d45ce0669c08056b7c2a0ff0b85aff91baa 100644 (file)
@@ -23,7 +23,7 @@ export class HistoryManager extends Signals.EventEmitter {
         if (this._key) {
             this._history = global.settings.get_strv(this._key);
             global.settings.connect(`changed::${this._key}`,
-                                    this._historyChanged.bind(this));
+                this._historyChanged.bind(this));
         } else {
             this._history = [];
         }
@@ -32,7 +32,7 @@ export class HistoryManager extends Signals.EventEmitter {
 
         if (this._entry) {
             this._entry.connect('key-press-event',
-                                this._onEntryKeyPress.bind(this));
+                this._onEntryKeyPress.bind(this));
         }
     }
 
index 9f16597588e6750868a5fd5e409017a849e87d4d..76e615d7826b73e84639480ddc0b0584bb7085c0 100644 (file)
@@ -42,7 +42,7 @@ export const InputMethod = GObject.registerClass({
 
         this._inputSourceManager = Keyboard.getInputSourceManager();
         this._sourceChangedId = this._inputSourceManager.connect('current-source-changed',
-                                                                 this._onSourceChanged.bind(this));
+            this._onSourceChanged.bind(this));
         this._currentSource = this._inputSourceManager.currentSource;
 
         if (this._ibus.is_connected())
index 163919aa6cd11f4e0587656d0a3f1c9f64bb2dd6..b8b34c7bf7c2bb0890f8d0a61feaf47db5f44409 100644 (file)
@@ -18,12 +18,12 @@ const IntrospectDBusIface = loadInterfaceXML('org.gnome.Shell.Introspect');
 
 export class IntrospectService {
     constructor() {
-        this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(IntrospectDBusIface,
-                                                             this);
+        this._dbusImpl =
+            Gio.DBusExportedObject.wrapJSObject(IntrospectDBusIface, this);
         this._dbusImpl.export(Gio.DBus.session, '/org/gnome/Shell/Introspect');
         Gio.DBus.session.own_name('org.gnome.Shell.Introspect',
-                                  Gio.BusNameOwnerFlags.REPLACE,
-                                  null, null);
+            Gio.BusNameOwnerFlags.REPLACE,
+            null, null);
 
         this._runningApplications = {};
         this._runningApplicationsDirty = true;
@@ -32,18 +32,16 @@ export class IntrospectService {
         this._animationsEnabled = true;
 
         this._appSystem = Shell.AppSystem.get_default();
-        this._appSystem.connect('app-state-changed',
-                                () => {
-                                    this._runningApplicationsDirty = true;
-                                    this._syncRunningApplications();
-                                });
+        this._appSystem.connect('app-state-changed', () => {
+            this._runningApplicationsDirty = true;
+            this._syncRunningApplications();
+        });
 
         let tracker = Shell.WindowTracker.get_default();
-        tracker.connect('notify::focus-app',
-                        () => {
-                            this._activeApplicationDirty = true;
-                            this._syncRunningApplications();
-                        });
+        tracker.connect('notify::focus-app', () => {
+            this._activeApplicationDirty = true;
+            this._syncRunningApplications();
+        });
 
         tracker.connect('tracked-windows-changed',
             () => this._dbusImpl.emit_signal('WindowsChanged', null));
index 408bab863acb715e4a6fb2eb365d9dc8a296e907..067e2e87e86c162b6cbd696742aad2a1cbeda781 100644 (file)
@@ -38,12 +38,13 @@ function versionCompare(required, reference) {
 export function canLock() {
     try {
         let params = GLib.Variant.new('(ss)', ['org.gnome.DisplayManager.Manager', 'Version']);
-        let result = Gio.DBus.system.call_sync('org.gnome.DisplayManager',
-                                               '/org/gnome/DisplayManager/Manager',
-                                               'org.freedesktop.DBus.Properties',
-                                               'Get', params, null,
-                                               Gio.DBusCallFlags.NONE,
-                                               -1, null);
+        let result = Gio.DBus.system.call_sync(
+            'org.gnome.DisplayManager',
+            '/org/gnome/DisplayManager/Manager',
+            'org.freedesktop.DBus.Properties',
+            'Get', params, null,
+            Gio.DBusCallFlags.NONE,
+            -1, null);
 
         let version = result.deepUnpack()[0].deepUnpack();
         return haveSystemd() && versionCompare('3.5.91', version);
@@ -93,13 +94,13 @@ class LoginManagerSystemd extends Signals.EventEmitter {
         super();
 
         this._proxy = new SystemdLoginManager(Gio.DBus.system,
-                                              'org.freedesktop.login1',
-                                              '/org/freedesktop/login1');
+            'org.freedesktop.login1',
+            '/org/freedesktop/login1');
         this._userProxy = new SystemdLoginUser(Gio.DBus.system,
-                                               'org.freedesktop.login1',
-                                               '/org/freedesktop/login1/user/self');
+            'org.freedesktop.login1',
+            '/org/freedesktop/login1/user/self');
         this._proxy.connectSignal('PrepareForSleep',
-                                  this._prepareForSleep.bind(this));
+            this._prepareForSleep.bind(this));
     }
 
     async getCurrentSessionProxy() {
@@ -118,8 +119,8 @@ class LoginManagerSystemd extends Signals.EventEmitter {
 
                 for ([session, objectPath] of this._userProxy.Sessions) {
                     let sessionProxy = new SystemdLoginSession(Gio.DBus.system,
-                                                               'org.freedesktop.login1',
-                                                               objectPath);
+                        'org.freedesktop.login1',
+                        objectPath);
                     log(`Considering ${session}, class=${sessionProxy.Class}`);
                     if (sessionProxy.Class == 'greeter') {
                         log(`Yes, will monitor session ${session}`);
index 0659bcadc88e2ee2759ab517fab5ae6820a3392b..07b5c8bdd7b1de2b7b31cbb8d90595b15d975eae 100644 (file)
@@ -14,7 +14,7 @@ const PermissionStoreProxy = Gio.DBusProxy.makeProxyWrapper(PermissionStoreIface
  */
 export function PermissionStore(initCallback, cancellable) {
     return new PermissionStoreProxy(Gio.DBus.session,
-                                    'org.freedesktop.impl.portal.PermissionStore',
-                                    '/org/freedesktop/impl/portal/PermissionStore',
-                                    initCallback, cancellable);
+        'org.freedesktop.impl.portal.PermissionStore',
+        '/org/freedesktop/impl/portal/PermissionStore',
+        initCallback, cancellable);
 }
index de5362d65dd39d505e3a30a7f165ea6a7fe2e51c..efb875bace478ecb1838a1fb329555a9fe073131 100644 (file)
@@ -161,26 +161,26 @@ const SystemActions = GObject.registerClass({
         this._userManager = AccountsService.UserManager.get_default();
 
         this._userManager.connect('notify::is-loaded',
-                                  () => this._updateMultiUser());
+            () => this._updateMultiUser());
         this._userManager.connect('notify::has-multiple-users',
-                                  () => this._updateMultiUser());
+            () => this._updateMultiUser());
         this._userManager.connect('user-added',
-                                  () => this._updateMultiUser());
+            () => this._updateMultiUser());
         this._userManager.connect('user-removed',
-                                  () => this._updateMultiUser());
+            () => this._updateMultiUser());
 
         this._lockdownSettings.connect(`changed::${DISABLE_USER_SWITCH_KEY}`,
-                                       () => this._updateSwitchUser());
+            () => this._updateSwitchUser());
         this._lockdownSettings.connect(`changed::${DISABLE_LOG_OUT_KEY}`,
-                                       () => this._updateLogout());
+            () => this._updateLogout());
         global.settings.connect(`changed::${ALWAYS_SHOW_LOG_OUT_KEY}`,
-                                () => this._updateLogout());
+            () => this._updateLogout());
 
         this._lockdownSettings.connect(`changed::${DISABLE_LOCK_SCREEN_KEY}`,
-                                       () => this._updateLockScreen());
+            () => this._updateLockScreen());
 
         this._lockdownSettings.connect(`changed::${DISABLE_LOG_OUT_KEY}`,
-                                       () => this._updateHaveShutdown());
+            () => this._updateHaveShutdown());
 
         this.forceUpdate();
 
@@ -189,7 +189,7 @@ const SystemActions = GObject.registerClass({
             this._updateOrientationLockStatus();
         });
         Main.layoutManager.connect('monitors-changed',
-                                   () => this._updateOrientationLock());
+            () => this._updateOrientationLock());
         this._monitorManager.connect('notify::panel-orientation-managed',
             () => this._updateOrientationLock());
         this._updateOrientationLock();
index 7fe9fe8c0e7948f690c05d9ca4a8343fef2b2228..3bca893f4666eb61327c0e670839fa383d7de424 100644 (file)
@@ -98,8 +98,9 @@ export function spawnCommandLine(commandLine) {
  */
 export function spawnApp(argv) {
     try {
-        let app = Gio.AppInfo.create_from_commandline(argv.join(' '), null,
-                                                      Gio.AppInfoCreateFlags.SUPPORTS_STARTUP_NOTIFICATION);
+        const app = Gio.AppInfo.create_from_commandline(argv.join(' '),
+            null,
+            Gio.AppInfoCreateFlags.SUPPORTS_STARTUP_NOTIFICATION);
 
         let context = global.create_app_launch_context(0, -1);
         app.launch([], context);
index b49dc04cacfa83ac610351d86d742fd70fbfb9f7..7dcc78acfe6b4f2dfe9046c36a7dbdd9c82edf0f 100644 (file)
@@ -67,11 +67,11 @@ export class WeatherClient extends Signals.EventEmitter {
             this._onPermStoreChanged(this._permStore, '', params);
         });
         this._permStore.connectSignal('Changed',
-                                      this._onPermStoreChanged.bind(this));
+            this._onPermStoreChanged.bind(this));
 
         this._locationSettings = new Gio.Settings({schema_id: 'org.gnome.system.location'});
         this._locationSettings.connect('changed::enabled',
-                                       this._updateAutoLocation.bind(this));
+            this._updateAutoLocation.bind(this));
 
         this._world = GWeather.Location.get_world();
 
@@ -240,7 +240,7 @@ export class WeatherClient extends Signals.EventEmitter {
 
             this._gclueLocationChangedId =
                 this._gclueService.connect('notify::location',
-                                           this._onGClueLocationChanged.bind(this));
+                    this._onGClueLocationChanged.bind(this));
             this._onGClueLocationChanged();
         } else {
             if (this._gclueLocationChangedId)
@@ -270,10 +270,11 @@ export class WeatherClient extends Signals.EventEmitter {
 
     _onGClueLocationChanged() {
         let geoLocation = this._gclueService.location;
-        let location = GWeather.Location.new_detached(geoLocation.description,
-                                                      null,
-                                                      geoLocation.latitude,
-                                                      geoLocation.longitude);
+        let location = GWeather.Location.new_detached(
+            geoLocation.description,
+            null,
+            geoLocation.latitude,
+            geoLocation.longitude);
         this._setLocation(location);
     }
 
index a731081d6128564c7c574633533acedccdbb1e7a..809ec3612a122bf8b979b93b60b4aee45707c555 100644 (file)
@@ -96,9 +96,10 @@ class AccessDialog extends ModalDialog.ModalDialog {
 
     CloseAsync(invocation, _params) {
         if (this._invocation.get_sender() != invocation.get_sender()) {
-            invocation.return_error_literal(Gio.DBusError,
-                                            Gio.DBusError.ACCESS_DENIED,
-                                            '');
+            invocation.return_error_literal(
+                Gio.DBusError,
+                Gio.DBusError.ACCESS_DENIED,
+                '');
             return;
         }
 
@@ -120,8 +121,8 @@ class AccessDialog extends ModalDialog.ModalDialog {
 
         // Delay actual response until the end of the close animation (if any)
         this.connect('closed', () => {
-            this._invocation.return_value(new GLib.Variant('(ua{sv})',
-                                                           [response, results]));
+            this._invocation.return_value(
+                new GLib.Variant('(ua{sv})', [response, results]));
         });
         this.close();
     }
@@ -141,9 +142,10 @@ export class AccessDialogDBus {
 
     AccessDialogAsync(params, invocation) {
         if (this._accessDialog) {
-            invocation.return_error_literal(Gio.DBusError,
-                                            Gio.DBusError.LIMITS_EXCEEDED,
-                                            'Already showing a system access dialog');
+            invocation.return_error_literal(
+                Gio.DBusError,
+                Gio.DBusError.LIMITS_EXCEEDED,
+                'Already showing a system access dialog');
             return;
         }
 
@@ -151,9 +153,10 @@ export class AccessDialogDBus {
         // We probably want to use parentWindow and global.display.focus_window
         // for this check in the future
         if (appId && `${appId}.desktop` !== this._windowTracker.focus_app.id) {
-            invocation.return_error_literal(Gio.DBusError,
-                                            Gio.DBusError.ACCESS_DENIED,
-                                            'Only the focused app is allowed to show a system access dialog');
+            invocation.return_error_literal(
+                Gio.DBusError,
+                Gio.DBusError.ACCESS_DENIED,
+                'Only the focused app is allowed to show a system access dialog');
             return;
         }
 
index 4929cf2c39cc735d73c43457ce1020b644515f8a..bc04f82730154b3aceef534dd92400115bfa4837 100644 (file)
@@ -142,16 +142,18 @@ class AppSwitcherPopup extends SwitcherPopup.SwitcherPopup {
         // We actually want the second window if we're in the unset state
         if (this._currentWindow == -1)
             this._currentWindow = 0;
-        return SwitcherPopup.mod(this._currentWindow + 1,
-                                 this._items[this._selectedIndex].cachedWindows.length);
+        return SwitcherPopup.mod(
+            this._currentWindow + 1,
+            this._items[this._selectedIndex].cachedWindows.length);
     }
 
     _previousWindow() {
         // Also assume second window here
         if (this._currentWindow == -1)
             this._currentWindow = 1;
-        return SwitcherPopup.mod(this._currentWindow - 1,
-                                 this._items[this._selectedIndex].cachedWindows.length);
+        return SwitcherPopup.mod(
+            this._currentWindow - 1,
+            this._items[this._selectedIndex].cachedWindows.length);
     }
 
     _closeAppWindow(appIndex, windowIndex) {
@@ -1032,8 +1034,8 @@ class WindowIcon extends St.BoxLayout {
             this._icon.add_actor(_createWindowClone(mutterWindow, size * scaleFactor));
 
             if (this.app) {
-                this._icon.add_actor(this._createAppIcon(this.app,
-                                                         APP_ICON_SIZE_SMALL));
+                this._icon.add_actor(
+                    this._createAppIcon(this.app, APP_ICON_SIZE_SMALL));
             }
             break;
 
index e6fb33246bce1258eaeb6d25b5f319116458af9e..dab447f9d41f2ce4c3778dc9d0d9006474b8cc06 100644 (file)
@@ -168,11 +168,12 @@ export class AudioDeviceSelectionDBus {
         let info = this._dbusImpl.get_info();
         const deviceName = Object.keys(AudioDevice)
             .filter(dev => AudioDevice[dev] === device)[0].toLowerCase();
-        connection.emit_signal(this._audioSelectionDialog._sender,
-                               this._dbusImpl.get_object_path(),
-                               info ? info.name : null,
-                               'DeviceSelected',
-                               GLib.Variant.new('(s)', [deviceName]));
+        connection.emit_signal(
+            this._audioSelectionDialog._sender,
+            this._dbusImpl.get_object_path(),
+            info ? info.name : null,
+            'DeviceSelected',
+            GLib.Variant.new('(s)', [deviceName]));
     }
 
     OpenAsync(params, invocation) {
@@ -196,7 +197,7 @@ export class AudioDeviceSelectionDBus {
 
         dialog.connect('closed', this._onDialogClosed.bind(this));
         dialog.connect('device-selected',
-                       this._onDeviceSelected.bind(this));
+            this._onDeviceSelected.bind(this));
         dialog.open();
 
         this._audioSelectionDialog = dialog;
index 24733869ada9677ddb0395215191a4434894c718..e9cf8fe4ad455339ef267d4e7faf171aefe86af4 100644 (file)
@@ -157,13 +157,13 @@ class BackgroundCache extends Signals.EventEmitter {
 
         let monitor = file.monitor(Gio.FileMonitorFlags.NONE, null);
         monitor.connect('changed',
-                        (obj, theFile, otherFile, eventType) => {
-                            // Ignore CHANGED and CREATED events, since in both cases
-                            // we'll get a CHANGES_DONE_HINT event when done.
-                            if (eventType != Gio.FileMonitorEvent.CHANGED &&
-                                eventType != Gio.FileMonitorEvent.CREATED)
-                                this.emit('file-changed', file);
-                        });
+            (obj, theFile, otherFile, eventType) => {
+                // Ignore CHANGED and CREATED events, since in both cases
+                // we'll get a CHANGES_DONE_HINT event when done.
+                if (eventType != Gio.FileMonitorEvent.CHANGED &&
+                    eventType != Gio.FileMonitorEvent.CREATED)
+                    this.emit('file-changed', file);
+            });
 
         this._fileMonitors[key] = monitor;
     }
@@ -374,13 +374,13 @@ const Background = GObject.registerClass({
 
         this._cache.monitorFile(file);
         let signalId = this._cache.connect('file-changed',
-                                           (cache, changedFile) => {
-                                               if (changedFile.equal(file)) {
-                                                   let imageCache = Meta.BackgroundImageCache.get_default();
-                                                   imageCache.purge(changedFile);
-                                                   this._emitChangedSignal();
-                                               }
-                                           });
+            (cache, changedFile) => {
+                if (changedFile.equal(file)) {
+                    let imageCache = Meta.BackgroundImageCache.get_default();
+                    imageCache.purge(changedFile);
+                    this._emitChangedSignal();
+                }
+            });
         this._fileWatches[key] = signalId;
     }
 
@@ -401,8 +401,8 @@ const Background = GObject.registerClass({
             this._setLoaded();
             if (files.length > 1) {
                 this.set_blend(files[0], files[1],
-                               this._animation.transitionProgress,
-                               this._style);
+                    this._animation.transitionProgress,
+                    this._style);
             } else if (files.length > 0) {
                 this.set_file(files[0], this._style);
             } else {
@@ -445,19 +445,20 @@ const Background = GObject.registerClass({
         let nSteps = 255 / ANIMATION_OPACITY_STEP_INCREMENT;
         let timePerStep = (this._animation.transitionDuration * 1000) / nSteps;
 
-        let interval = Math.max(ANIMATION_MIN_WAKEUP_INTERVAL * 1000,
-                                timePerStep);
+        let interval = Math.max(
+            ANIMATION_MIN_WAKEUP_INTERVAL * 1000,
+            timePerStep);
 
         if (interval > GLib.MAXUINT32)
             return;
 
         this._updateAnimationTimeoutId = GLib.timeout_add(GLib.PRIORITY_DEFAULT,
-                                                          interval,
-                                                          () => {
-                                                              this._updateAnimationTimeoutId = 0;
-                                                              this._updateAnimation();
-                                                              return GLib.SOURCE_REMOVE;
-                                                          });
+            interval,
+            () => {
+                this._updateAnimationTimeoutId = 0;
+                this._updateAnimation();
+                return GLib.SOURCE_REMOVE;
+            });
         GLib.Source.set_name_by_id(this._updateAnimationTimeoutId, '[gnome-shell] this._updateAnimation');
     }
 
@@ -565,7 +566,7 @@ class BackgroundSource {
         const monitorManager = global.backend.get_monitor_manager();
         this._monitorsChangedId =
             monitorManager.connect('monitors-changed',
-                                   this._onMonitorsChanged.bind(this));
+                this._onMonitorsChanged.bind(this));
 
         this._interfaceSettings = new Gio.Settings({schema_id: INTERFACE_SCHEMA});
     }
index 8d95ffb08eeba645e4f5cb8a85914a7f0ec9c432..834c4224685fb553fd3e22145fe9b7c02f1eb4c4 100644 (file)
@@ -348,8 +348,9 @@ export const BoxPointer = GObject.registerClass({
 
         if (!skipTopRight) {
             cr.lineTo(x2 - borderRadius, y1);
-            cr.arc(x2 - borderRadius, y1 + borderRadius, borderRadius,
-                   3 * Math.PI / 2, Math.PI * 2);
+            cr.arc(
+                x2 - borderRadius, y1 + borderRadius, borderRadius,
+                3 * Math.PI / 2, Math.PI * 2);
         }
 
         if (this._arrowSide == St.Side.RIGHT && rise) {
@@ -369,8 +370,9 @@ export const BoxPointer = GObject.registerClass({
 
         if (!skipBottomRight) {
             cr.lineTo(x2, y2 - borderRadius);
-            cr.arc(x2 - borderRadius, y2 - borderRadius, borderRadius,
-                   0, Math.PI / 2);
+            cr.arc(
+                x2 - borderRadius, y2 - borderRadius, borderRadius,
+                0, Math.PI / 2);
         }
 
         if (this._arrowSide == St.Side.BOTTOM && rise) {
@@ -390,8 +392,9 @@ export const BoxPointer = GObject.registerClass({
 
         if (!skipBottomLeft) {
             cr.lineTo(x1 + borderRadius, y2);
-            cr.arc(x1 + borderRadius, y2 - borderRadius, borderRadius,
-                   Math.PI / 2, Math.PI);
+            cr.arc(
+                x1 + borderRadius, y2 - borderRadius, borderRadius,
+                Math.PI / 2, Math.PI);
         }
 
         if (this._arrowSide == St.Side.LEFT && rise) {
@@ -411,8 +414,9 @@ export const BoxPointer = GObject.registerClass({
 
         if (!skipTopLeft) {
             cr.lineTo(x1, y1 + borderRadius);
-            cr.arc(x1 + borderRadius, y1 + borderRadius, borderRadius,
-                   Math.PI, 3 * Math.PI / 2);
+            cr.arc(
+                x1 + borderRadius, y1 + borderRadius, borderRadius,
+                Math.PI, 3 * Math.PI / 2);
         }
 
         const [hasColor, bgColor] =
index dea2f978c72bd5fb7dc617a7a5dfef8d306023df..4d3942833951fae3d4c1d28c26247a327b3033a4 100644 (file)
@@ -131,7 +131,7 @@ export const CloseDialog = GObject.registerClass({
 
         if (shouldTrack) {
             Main.layoutManager.trackChrome(this._dialog,
-                                           {affectsInputRegion: true});
+                {affectsInputRegion: true});
         } else {
             Main.layoutManager.untrackChrome(this._dialog);
         }
index 71c786f871f7d3c52b7607d1ab0b0943112b74b8..899c6a0d8f4c8c1a4dfbc2adfc4fec5c56d09d3c 100644 (file)
@@ -22,9 +22,9 @@ class AutomountManager {
         this._activeOperations = new Map();
         this._session = new GnomeSession.SessionManager();
         this._session.connectSignal('InhibitorAdded',
-                                    this._InhibitorsChanged.bind(this));
+            this._InhibitorsChanged.bind(this));
         this._session.connectSignal('InhibitorRemoved',
-                                    this._InhibitorsChanged.bind(this));
+            this._InhibitorsChanged.bind(this));
         this._inhibited = false;
 
         this._volumeMonitor = Gio.VolumeMonitor.get();
@@ -81,8 +81,8 @@ class AutomountManager {
 
         let player = global.display.get_sound_player();
         player.play_from_theme('device-added-media',
-                               _('External drive connected'),
-                               null);
+            _('External drive connected'),
+            null);
     }
 
     _onDriveDisconnected() {
@@ -93,8 +93,8 @@ class AutomountManager {
 
         let player = global.display.get_sound_player();
         player.play_from_theme('device-removed-media',
-                               _('External drive disconnected'),
-                               null);
+            _('External drive disconnected'),
+            null);
     }
 
     _onDriveEjectButton(monitor, drive) {
@@ -180,7 +180,7 @@ class AutomountManager {
         this._activeOperations.set(volume, operation);
 
         volume.mount(0, mountOp, null,
-                     this._onVolumeMounted.bind(this));
+            this._onVolumeMounted.bind(this));
     }
 
     _onVolumeMounted(volume, res) {
@@ -226,8 +226,7 @@ class AutomountManager {
         let prevOperation = this._activeOperations.get(volume);
         const existingDialog = prevOperation?.borrowDialog();
         let operation =
-            new ShellMountOperation.ShellMountOperation(volume,
-                                                        {existingDialog});
+            new ShellMountOperation.ShellMountOperation(volume, {existingDialog});
         this._mountVolume(volume, operation);
     }
 
index 26de39883065a087adc64bbe12e33331d1e0ac3a..674bfd3ff16997b4a5c423c2cc737fdc062cf74a 100644 (file)
@@ -69,7 +69,7 @@ function startAppForMount(app, mount) {
 
     try {
         retval = app.launch(files,
-                            global.create_app_launch_context(0, -1));
+            global.create_app_launch_context(0, -1));
     } catch (e) {
         log(`Unable to launch the app ${app.get_name()}: ${e}`);
     }
@@ -81,8 +81,8 @@ const HotplugSnifferIface = loadInterfaceXML('org.gnome.Shell.HotplugSniffer');
 const HotplugSnifferProxy = Gio.DBusProxy.makeProxyWrapper(HotplugSnifferIface);
 function HotplugSniffer() {
     return new HotplugSnifferProxy(Gio.DBus.session,
-                                   'org.gnome.Shell.HotplugSniffer',
-                                   '/org/gnome/Shell/HotplugSniffer');
+        'org.gnome.Shell.HotplugSniffer',
+        '/org/gnome/Shell/HotplugSniffer');
 }
 
 class ContentTypeDiscoverer {
index 5b7b983dcef0efda6c8f5e101f5c17214b7d483e..cfa9b5ec941ebca8636ebacb8f29b0a29ba9f014 100644 (file)
@@ -216,7 +216,7 @@ class KeyringPrompter extends Gcr.SystemPrompter {
         if (!this._registered) {
             this.register(Gio.DBus.session);
             this._dbusId = Gio.DBus.session.own_name('org.gnome.keyring.SystemPrompter',
-                                                     Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT, null, null);
+                Gio.BusNameOwnerFlags.ALLOW_REPLACEMENT, null, null);
             this._registered = true;
         }
         this._enabled = true;
index 242271b5ae3b56a3a55dcd2d2e96a2e6451f85f7..d06a339fa6b7dde6b4b8fbd571b7f64a23fd8ee0 100644 (file)
@@ -480,7 +480,7 @@ class VPNRequestHandler extends Signals.EventEmitter {
                 this._readStdoutOldStyle();
 
             this._childWatch = GLib.child_watch_add(GLib.PRIORITY_DEFAULT, pid,
-                                                    this._vpnChildFinished.bind(this));
+                this._vpnChildFinished.bind(this));
 
             this._writeConnection();
         } catch (e) {
index f02ea6dac3bd10eba31fab40b49f193eae725f8c..2ce501ab66e0c04ad7e9849982633e55b3e9f029 100644 (file)
@@ -425,9 +425,10 @@ class ChatSource extends MessageTray.Source {
     _updateAvatarIcon() {
         this.iconUpdated();
         if (this._notification) {
-            this._notification.update(this._notification.title,
-                                      this._notification.bannerBodyText,
-                                      {gicon: this.getIcon()});
+            this._notification.update(
+                this._notification.title,
+                this._notification.bannerBodyText,
+                {gicon: this.getIcon()});
         }
     }
 
@@ -631,9 +632,10 @@ class ChatSource extends MessageTray.Source {
 
     _presenceChanged(_contact, _presence, _status, _message) {
         if (this._notification) {
-            this._notification.update(this._notification.title,
-                                      this._notification.bannerBodyText,
-                                      {secondaryGIcon: this.getSecondaryIcon()});
+            this._notification.update(
+                this._notification.title,
+                this._notification.bannerBodyText,
+                {secondaryGIcon: this.getSecondaryIcon()});
         }
     }
 
index 0cac4253762547d4a422d3d31050d4ac1ba58151..00a0368331a855e31e48603591d1c86d2c007543 100644 (file)
@@ -88,7 +88,7 @@ export class CtrlAltTabManager {
             let workspaceManager = global.workspace_manager;
             let activeWorkspace = workspaceManager.get_active_workspace();
             let windows = display.get_tab_list(Meta.TabList.DOCKS,
-                                               activeWorkspace);
+                activeWorkspace);
             let windowTracker = Shell.WindowTracker.get_default();
             let textureCache = St.TextureCache.get_default();
             for (let i = 0; i < windows.length; i++) {
@@ -130,10 +130,9 @@ export class CtrlAltTabManager {
             this._popup = new CtrlAltTabPopup(items);
             this._popup.show(backward, binding, mask);
 
-            this._popup.connect('destroy',
-                                () => {
-                                    this._popup = null;
-                                });
+            this._popup.connect('destroy', () => {
+                this._popup = null;
+            });
         }
     }
 
index f7312dbc62499f805f4e3bd41a0e0d1cee06ebb1..2f80a4eeee1becd94d6c9778873ab6ed1a732688 100644 (file)
@@ -99,16 +99,18 @@ class DashItemContainer extends St.Widget {
         let themeNode = this.get_theme_node();
         forWidth = themeNode.adjust_for_width(forWidth);
         let [minHeight, natHeight] = super.vfunc_get_preferred_height(forWidth);
-        return themeNode.adjust_preferred_height(minHeight * this.scale_y,
-                                                 natHeight * this.scale_y);
+        return themeNode.adjust_preferred_height(
+            minHeight * this.scale_y,
+            natHeight * this.scale_y);
     }
 
     vfunc_get_preferred_width(forHeight) {
         let themeNode = this.get_theme_node();
         forHeight = themeNode.adjust_for_height(forHeight);
         let [minWidth, natWidth] = super.vfunc_get_preferred_width(forHeight);
-        return themeNode.adjust_preferred_width(minWidth * this.scale_x,
-                                                natWidth * this.scale_x);
+        return themeNode.adjust_preferred_width(
+            minWidth * this.scale_x,
+            natWidth * this.scale_x);
     }
 
     showLabel() {
@@ -512,10 +514,9 @@ export const Dash = GObject.registerClass({
     _createAppItem(app) {
         let appIcon = new DashIcon(app);
 
-        appIcon.connect('menu-state-changed',
-                        (o, opened) => {
-                            this._itemMenuStateChanged(item, opened);
-                        });
+        appIcon.connect('menu-state-changed', (o, opened) => {
+            this._itemMenuStateChanged(item, opened);
+        });
 
         let item = new DashItemContainer();
         item.setChild(appIcon);
@@ -663,8 +664,9 @@ export const Dash = GObject.registerClass({
 
             // Scale the icon's texture to the previous size and
             // tween to the new size
-            icon.icon.set_size(icon.icon.width * scale,
-                               icon.icon.height * scale);
+            icon.icon.set_size(
+                icon.icon.width * scale,
+                icon.icon.height * scale);
 
             icon.icon.ease({
                 width: targetWidth,
@@ -782,8 +784,9 @@ export const Dash = GObject.registerClass({
         }
 
         for (let i = 0; i < addedItems.length; i++) {
-            this._box.insert_child_at_index(addedItems[i].item,
-                                            addedItems[i].pos);
+            this._box.insert_child_at_index(
+                addedItems[i].item,
+                addedItems[i].pos);
         }
 
         for (let i = 0; i < removedActors.length; i++) {
@@ -925,8 +928,9 @@ export const Dash = GObject.registerClass({
             this._dragPlaceholder = new DragPlaceholderItem();
             this._dragPlaceholder.child.set_width(this.iconSize);
             this._dragPlaceholder.child.set_height(this.iconSize / 2);
-            this._box.insert_child_at_index(this._dragPlaceholder,
-                                            this._dragPlaceholderPos);
+            this._box.insert_child_at_index(
+                this._dragPlaceholder,
+                this._dragPlaceholderPos);
             this._dragPlaceholder.show(fadeIn);
         }
 
index 4bf352201da0efbcf487bc341c41e4d3702444c5..96762204c5eb924aa58cfbeda46200f54e08639c 100644 (file)
@@ -238,7 +238,7 @@ class _Draggable extends Signals.EventEmitter {
     _grabActor(device, touchSequence) {
         this._grabDevice(this.actor, device, touchSequence);
         this._onEventId = this.actor.connect('event',
-                                             this._onEvent.bind(this));
+            this._onEvent.bind(this));
     }
 
     _ungrabActor() {
@@ -573,8 +573,8 @@ class _Draggable extends Signals.EventEmitter {
     }
 
     _pickTargetActor() {
-        return this._dragActor.get_stage().get_actor_at_pos(Clutter.PickMode.ALL,
-                                                            this._dragX, this._dragY);
+        return this._dragActor.get_stage().get_actor_at_pos(
+            Clutter.PickMode.ALL, this._dragX, this._dragY);
     }
 
     _updateDragHover() {
@@ -619,11 +619,12 @@ class _Draggable extends Signals.EventEmitter {
                 // We currently loop through all parents on drag-over even if one of the children has handled it.
                 // We can check the return value of the function and break the loop if it's true if we don't want
                 // to continue checking the parents.
-                let result = target._delegate.handleDragOver(this.actor._delegate,
-                                                             this._dragActor,
-                                                             targX,
-                                                             targY,
-                                                             0);
+                let result = target._delegate.handleDragOver(
+                    this.actor._delegate,
+                    this._dragActor,
+                    targX,
+                    targY,
+                    0);
                 if (result != DragMotionResult.CONTINUE) {
                     global.display.set_cursor(DRAG_CURSOR_MAP[result]);
                     return GLib.SOURCE_REMOVE;
@@ -640,7 +641,7 @@ class _Draggable extends Signals.EventEmitter {
             return;
 
         this._updateHoverId = GLib.idle_add(GLib.PRIORITY_DEFAULT,
-                                            this._updateDragHover.bind(this));
+            this._updateDragHover.bind(this));
         GLib.Source.set_name_by_id(this._updateHoverId, '[gnome-shell] this._updateDragHover');
     }
 
@@ -648,8 +649,9 @@ class _Draggable extends Signals.EventEmitter {
         let [stageX, stageY] = event.get_coords();
         this._dragX = stageX;
         this._dragY = stageY;
-        this._dragActor.set_position(stageX + this._dragOffsetX,
-                                     stageY + this._dragOffsetY);
+        this._dragActor.set_position(
+            stageX + this._dragOffsetX,
+            stageY + this._dragOffsetY);
 
         this._queueUpdateDragHover();
         return true;
@@ -657,8 +659,8 @@ class _Draggable extends Signals.EventEmitter {
 
     _dragActorDropped(event) {
         let [dropX, dropY] = event.get_coords();
-        let target = this._dragActor.get_stage().get_actor_at_pos(Clutter.PickMode.ALL,
-                                                                  dropX, dropY);
+        let target = this._dragActor.get_stage().get_actor_at_pos(
+            Clutter.PickMode.ALL, dropX, dropY);
 
         // We call observers only once per motion with the innermost
         // target actor. If necessary, the observer can walk the
index 8479ed6595755559ee7c94776905c09a2d0353a2..d730627da58a0beed30e75bacf41b9a5ff73aefc 100644 (file)
@@ -247,22 +247,22 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._updatesPermission = null;
 
         this._pkOfflineProxy = new PkOfflineProxy(Gio.DBus.system,
-                                                  'org.freedesktop.PackageKit',
-                                                  '/org/freedesktop/PackageKit',
-                                                  this._onPkOfflineProxyCreated.bind(this));
+            'org.freedesktop.PackageKit',
+            '/org/freedesktop/PackageKit',
+            this._onPkOfflineProxyCreated.bind(this));
 
         this._powerProxy = new UPowerProxy(Gio.DBus.system,
-                                           'org.freedesktop.UPower',
-                                           '/org/freedesktop/UPower/devices/DisplayDevice',
-                                           (proxy, error) => {
-                                               if (error) {
-                                                   log(error.message);
-                                                   return;
-                                               }
-                                               this._powerProxy.connect('g-properties-changed',
-                                                                        this._sync.bind(this));
-                                               this._sync();
-                                           });
+            'org.freedesktop.UPower',
+            '/org/freedesktop/UPower/devices/DisplayDevice',
+            (proxy, error) => {
+                if (error) {
+                    log(error.message);
+                    return;
+                }
+                this._powerProxy.connect('g-properties-changed',
+                    this._sync.bind(this));
+                this._sync();
+            });
 
         this._secondsLeft = 0;
         this._totalSecondsToStayOpen = 0;
@@ -272,8 +272,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._rebootButton = null;
         this._rebootButtonAlt = null;
 
-        this.connect('opened',
-                     this._onOpened.bind(this));
+        this.connect('opened', this._onOpened.bind(this));
 
         this._user.connectObject(
             'notify::is-loaded', this._sync.bind(this),
@@ -379,9 +378,8 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._batteryWarning.visible = this._shouldShowLowBatteryWarning(dialogContent);
 
         let description;
-        let displayTime = _roundSecondsToInterval(this._totalSecondsToStayOpen,
-                                                  this._secondsLeft,
-                                                  10);
+        let displayTime = _roundSecondsToInterval(
+            this._totalSecondsToStayOpen, this._secondsLeft, 10);
 
         if (this._user.is_loaded) {
             let realName = this._user.get_real_name();
@@ -748,8 +746,9 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._sessionSection.list.destroy_all_children();
 
         if (!(this._type in DialogContent)) {
-            invocation.return_dbus_error('org.gnome.Shell.ModalDialog.TypeError',
-                                         'Unknown dialog type requested');
+            invocation.return_dbus_error(
+                'org.gnome.Shell.ModalDialog.TypeError',
+                'Unknown dialog type requested');
             return;
         }
 
@@ -781,8 +780,9 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
         this._updateButtons();
 
         if (!this.open(timestamp)) {
-            invocation.return_dbus_error('org.gnome.Shell.ModalDialog.GrabError',
-                                         'Cannot grab pointer and keyboard');
+            invocation.return_dbus_error(
+                'org.gnome.Shell.ModalDialog.GrabError',
+                'Cannot grab pointer and keyboard');
             return;
         }
 
index bfe7e35fa7a003ca910b7de4127a175a1fa51a2d..aae3f299d0de5f5498fcfe057501d2a0f687dedb 100644 (file)
@@ -227,10 +227,8 @@ class IbusCandidatePopup extends BoxPointer.BoxPointer {
             this._preeditText.text = text.get_text();
 
             let attrs = text.get_attributes();
-            if (attrs) {
-                this._setTextAttributes(this._preeditText.clutter_text,
-                                        attrs);
-            }
+            if (attrs)
+                this._setTextAttributes(this._preeditText.clutter_text, attrs);
         });
         panelService.connect('show-preedit-text', () => {
             this._preeditText.show();
@@ -285,9 +283,9 @@ class IbusCandidatePopup extends BoxPointer.BoxPointer {
             }
 
             this._candidateArea.setCandidates(indexes,
-                                              candidates,
-                                              cursorPos % pageSize,
-                                              lookupTable.is_cursor_visible());
+                candidates,
+                cursorPos % pageSize,
+                lookupTable.is_cursor_visible());
             this._candidateArea.setOrientation(lookupTable.get_orientation());
             this._candidateArea.updateButtons(lookupTable.is_round(), page, nPages);
         });
index 40aae5d2e7b9a7a9f20bfa291cc957137aa87aa4..2b054f7c5e4de0a6271a6fc363aa2fd460835953 100644 (file)
@@ -19,7 +19,7 @@ class KbdA11yDialog extends GObject.Object {
 
         let seat = Clutter.get_default_backend().get_default_seat();
         seat.connect('kbd-a11y-flags-changed',
-                     this._showKbdA11yDialog.bind(this));
+            this._showKbdA11yDialog.bind(this));
     }
 
     _showKbdA11yDialog(seat, newFlags, whatChanged) {
index 1d5b10a3576b36fd0d2e44b7865ba7177e93f5ff..3842a21f5c75f0e82c518aee32e726073e5b57b7 100644 (file)
@@ -2270,11 +2270,11 @@ class KeyboardController extends Signals.EventEmitter {
 
     keyvalPress(keyval) {
         this._virtualDevice.notify_keyval(Clutter.get_current_event_time() * 1000,
-                                          keyval, Clutter.KeyState.PRESSED);
+            keyval, Clutter.KeyState.PRESSED);
     }
 
     keyvalRelease(keyval) {
         this._virtualDevice.notify_keyval(Clutter.get_current_event_time() * 1000,
-                                          keyval, Clutter.KeyState.RELEASED);
+            keyval, Clutter.KeyState.RELEASED);
     }
 }
index 7e1f60cdab3e7bb85a5e7bd756671061234a3fbe..9bb6b82aaae4b11cadeabdfeefe60353171edb35 100644 (file)
@@ -39,18 +39,18 @@ function isPopupMetaWindow(actor) {
 
 export const MonitorConstraint = GObject.registerClass({
     Properties: {
-        'primary': GObject.ParamSpec.boolean('primary',
-                                             'Primary', 'Track primary monitor',
-                                             GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
-                                             false),
-        'index': GObject.ParamSpec.int('index',
-                                       'Monitor index', 'Track specific monitor',
-                                       GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
-                                       -1, 64, -1),
-        'work-area': GObject.ParamSpec.boolean('work-area',
-                                               'Work-area', 'Track monitor\'s work-area',
-                                               GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
-                                               false),
+        'primary': GObject.ParamSpec.boolean(
+            'primary', 'Primary', 'Track primary monitor',
+            GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
+            false),
+        'index': GObject.ParamSpec.int(
+            'index', 'Monitor index', 'Track specific monitor',
+            GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
+            -1, 64, -1),
+        'work-area': GObject.ParamSpec.boolean(
+            'work-area', 'Work-area', 'Track monitor\'s work-area',
+            GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
+            false),
     },
 }, class MonitorConstraint extends Clutter.Constraint {
     _init(props) {
@@ -284,7 +284,7 @@ export const LayoutManager = GObject.registerClass({
             trackFullscreen: true,
         });
         this.panelBox.connect('notify::allocation',
-                              this._panelBoxChanged.bind(this));
+            this._panelBoxChanged.bind(this));
 
         this.modalDialogGroup = new St.Widget({
             name: 'modalDialogGroup',
@@ -325,12 +325,12 @@ export const LayoutManager = GObject.registerClass({
         });
 
         this._interfaceSettings.connect('changed::enable-hot-corners',
-                                        this._updateHotCorners.bind(this));
+            this._updateHotCorners.bind(this));
 
         // Need to update struts on new workspaces when they are added
         let workspaceManager = global.workspace_manager;
         workspaceManager.connect('notify::n-workspaces',
-                                 this._queueUpdateRegions.bind(this));
+            this._queueUpdateRegions.bind(this));
 
         let display = global.display;
         display.connect('restacked',
@@ -387,8 +387,8 @@ export const LayoutManager = GObject.registerClass({
         let nMonitors = display.get_n_monitors();
         for (let i = 0; i < nMonitors; i++) {
             this.monitors.push(new Monitor(i,
-                                           display.get_monitor_geometry(i),
-                                           display.get_monitor_scale(i)));
+                display.get_monitor_geometry(i),
+                display.get_monitor_scale(i)));
         }
 
         if (nMonitors == 0) {
@@ -548,8 +548,9 @@ export const LayoutManager = GObject.registerClass({
     }
 
     _updateKeyboardBox() {
-        this.keyboardBox.set_position(this.keyboardMonitor.x,
-                                      this.keyboardMonitor.y + this.keyboardMonitor.height);
+        this.keyboardBox.set_position(
+            this.keyboardMonitor.x,
+            this.keyboardMonitor.y + this.keyboardMonitor.height);
         this.keyboardBox.set_size(this.keyboardMonitor.width, -1);
     }
 
@@ -1148,10 +1149,10 @@ class HotCorner extends Clutter.Actor {
 
         this._setupFallbackCornerIfNeeded(layoutManager);
 
-        this._pressureBarrier = new PressureBarrier(HOT_CORNER_PRESSURE_THRESHOLD,
-                                                    HOT_CORNER_PRESSURE_TIMEOUT,
-                                                    Shell.ActionMode.NORMAL |
-                                                    Shell.ActionMode.OVERVIEW);
+        this._pressureBarrier = new PressureBarrier(
+            HOT_CORNER_PRESSURE_THRESHOLD,
+            HOT_CORNER_PRESSURE_TIMEOUT,
+            Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW);
         this._pressureBarrier.connect('trigger', this._toggleOverview.bind(this));
 
         let px = 0.0;
@@ -1242,9 +1243,9 @@ class HotCorner extends Clutter.Actor {
             }
 
             this._corner.connect('enter-event',
-                                 this._onCornerEntered.bind(this));
+                this._onCornerEntered.bind(this));
             this._corner.connect('leave-event',
-                                 this._onCornerLeft.bind(this));
+                this._onCornerLeft.bind(this));
         }
     }
 
index 4908fab24e7997a58c2be677accec3e9d0408821..2e456bea6f0a4fc9b2f750d4fe8953bea4fc378a 100644 (file)
@@ -55,7 +55,7 @@ const RadialShaderEffect = GObject.registerClass({
 
     vfunc_build_pipeline() {
         this.add_glsl_snippet(Shell.SnippetHook.FRAGMENT,
-                              VIGNETTE_DECLARATIONS, VIGNETTE_CODE, true);
+            VIGNETTE_DECLARATIONS, VIGNETTE_CODE, true);
     }
 
     get brightness() {
index dbc77937f046236b12e8d2e372e0579f3edc6534..f8e81bf9a59b9ecf89fe7aa0f2871d71d2084b9f 100644 (file)
@@ -699,9 +699,8 @@ const Inspector = GObject.registerClass({
 
     _update(event) {
         let [stageX, stageY] = event.get_coords();
-        let target = global.stage.get_actor_at_pos(Clutter.PickMode.ALL,
-                                                   stageX,
-                                                   stageY);
+        let target = global.stage.get_actor_at_pos(
+            Clutter.PickMode.ALL, stageX, stageY);
 
         if (target != this._pointerTarget)
             this._target = target;
@@ -738,7 +737,7 @@ const Extensions = GObject.registerClass({
         });
 
         Main.extensionManager.connect('extension-loaded',
-                                      this._loadExtension.bind(this));
+            this._loadExtension.bind(this));
     }
 
     _loadExtension(o, uuid) {
@@ -1300,17 +1299,17 @@ class LookingGlass extends St.BoxLayout {
 
         this._interfaceSettings = new Gio.Settings({schema_id: 'org.gnome.desktop.interface'});
         this._interfaceSettings.connect('changed::monospace-font-name',
-                                        this._updateFont.bind(this));
+            this._updateFont.bind(this));
         this._updateFont();
 
         // We want it to appear to slide out from underneath the panel
         Main.uiGroup.add_actor(this);
         Main.uiGroup.set_child_below_sibling(this,
-                                             Main.layoutManager.panelBox);
+            Main.layoutManager.panelBox);
         Main.layoutManager.panelBox.connect('notify::allocation',
-                                            this._queueResize.bind(this));
+            this._queueResize.bind(this));
         Main.layoutManager.keyboardBox.connect('notify::allocation',
-                                               this._queueResize.bind(this));
+            this._queueResize.bind(this));
 
         this._objInspector = new ObjInspector(this);
         Main.uiGroup.add_actor(this._objInspector);
@@ -1590,8 +1589,9 @@ class LookingGlass extends St.BoxLayout {
         this.width = myWidth;
         this.height = myHeight;
         this._objInspector.set_size(Math.floor(myWidth * 0.8), Math.floor(myHeight * 0.8));
-        this._objInspector.set_position(this.x + Math.floor(myWidth * 0.1),
-                                        this._targetY + Math.floor(myHeight * 0.1));
+        this._objInspector.set_position(
+            this.x + Math.floor(myWidth * 0.1),
+            this._targetY + Math.floor(myHeight * 0.1));
     }
 
     insertObject(obj) {
@@ -1663,8 +1663,9 @@ class LookingGlass extends St.BoxLayout {
         this.setBorderPaintTarget(null);
 
         let settings = St.Settings.get();
-        let duration = Math.min(LG_ANIMATION_TIME / settings.slow_down_factor,
-                                LG_ANIMATION_TIME);
+        let duration = Math.min(
+            LG_ANIMATION_TIME / settings.slow_down_factor,
+            LG_ANIMATION_TIME);
         this.ease({
             y: this._hiddenY,
             duration,
index 3c8a915f5af1b3ea094c909eb5e24ce7ce24e5e2..9bfd97300466fa9522136a6f45803a81008d7af1 100644 (file)
@@ -68,7 +68,7 @@ const MouseSpriteContent = GObject.registerClass({
         let color = Clutter.Color.get_static(Clutter.StaticColor.WHITE);
         let [minFilter, magFilter] = actor.get_content_scaling_filters();
         let textureNode = new Clutter.TextureNode(this._texture,
-                                                  color, minFilter, magFilter);
+            color, minFilter, magFilter);
         textureNode.set_name('MouseSpriteContent');
         node.add_child(textureNode);
 
@@ -556,38 +556,38 @@ export class Magnifier extends Signals.EventEmitter {
         this._settings = new Gio.Settings({schema_id: MAGNIFIER_SCHEMA});
 
         this._settings.connect(`changed::${SCREEN_POSITION_KEY}`,
-                               this._updateScreenPosition.bind(this));
+            this._updateScreenPosition.bind(this));
         this._settings.connect(`changed::${MAG_FACTOR_KEY}`,
-                               this._updateMagFactor.bind(this));
+            this._updateMagFactor.bind(this));
         this._settings.connect(`changed::${LENS_MODE_KEY}`,
-                               this._updateLensMode.bind(this));
+            this._updateLensMode.bind(this));
         this._settings.connect(`changed::${CLAMP_MODE_KEY}`,
-                               this._updateClampMode.bind(this));
+            this._updateClampMode.bind(this));
         this._settings.connect(`changed::${MOUSE_TRACKING_KEY}`,
-                               this._updateMouseTrackingMode.bind(this));
+            this._updateMouseTrackingMode.bind(this));
         this._settings.connect(`changed::${FOCUS_TRACKING_KEY}`,
-                               this._updateFocusTrackingMode.bind(this));
+            this._updateFocusTrackingMode.bind(this));
         this._settings.connect(`changed::${CARET_TRACKING_KEY}`,
-                               this._updateCaretTrackingMode.bind(this));
+            this._updateCaretTrackingMode.bind(this));
 
         this._settings.connect(`changed::${INVERT_LIGHTNESS_KEY}`,
-                               this._updateInvertLightness.bind(this));
+            this._updateInvertLightness.bind(this));
         this._settings.connect(`changed::${COLOR_SATURATION_KEY}`,
-                               this._updateColorSaturation.bind(this));
+            this._updateColorSaturation.bind(this));
 
         this._settings.connect(`changed::${BRIGHT_RED_KEY}`,
-                               this._updateBrightness.bind(this));
+            this._updateBrightness.bind(this));
         this._settings.connect(`changed::${BRIGHT_GREEN_KEY}`,
-                               this._updateBrightness.bind(this));
+            this._updateBrightness.bind(this));
         this._settings.connect(`changed::${BRIGHT_BLUE_KEY}`,
-                               this._updateBrightness.bind(this));
+            this._updateBrightness.bind(this));
 
         this._settings.connect(`changed::${CONTRAST_RED_KEY}`,
-                               this._updateContrast.bind(this));
+            this._updateContrast.bind(this));
         this._settings.connect(`changed::${CONTRAST_GREEN_KEY}`,
-                               this._updateContrast.bind(this));
+            this._updateContrast.bind(this));
         this._settings.connect(`changed::${CONTRAST_BLUE_KEY}`,
-                               this._updateContrast.bind(this));
+            this._updateContrast.bind(this));
 
         this._settings.connect(`changed::${SHOW_CROSS_HAIRS_KEY}`, () => {
             this.setCrosshairsVisible(this._settings.get_boolean(SHOW_CROSS_HAIRS_KEY));
@@ -807,7 +807,7 @@ class ZoomRegion {
 
         this._signalConnections = [];
         let id = Main.layoutManager.connect('monitors-changed',
-                                            this._monitorsChanged.bind(this));
+            this._monitorsChanged.bind(this));
         this._signalConnections.push([Main.layoutManager, id]);
 
         id = this._focusCaretTracker.connect('caret-moved', this._updateCaret.bind(this));
@@ -1889,8 +1889,9 @@ class Crosshairs extends Clutter.Actor {
                     this._clones.push(crosshairsActor);
 
                     // Clones don't share visibility.
-                    this.bind_property('visible', crosshairsActor, 'visible',
-                                       GObject.BindingFlags.SYNC_CREATE);
+                    this.bind_property('visible',
+                        crosshairsActor, 'visible',
+                        GObject.BindingFlags.SYNC_CREATE);
                 }
 
                 container.add_actor(crosshairsActor);
index 6742b7f4ad385957ea990e6ce698568e6b7c90d2..6dd7185c39cf6ee3f1eb0105f17a57c7a0d3e5a8 100644 (file)
@@ -107,15 +107,14 @@ function _sessionUpdated() {
     if (sessionMode.isPrimary)
         _loadDefaultStylesheet();
 
-    wm.allowKeybinding('overlay-key', Shell.ActionMode.NORMAL |
-                                      Shell.ActionMode.OVERVIEW);
+    wm.allowKeybinding('overlay-key',
+        Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW);
 
     wm.allowKeybinding('locate-pointer-key', Shell.ActionMode.ALL);
 
     wm.setCustomKeybindingHandler('panel-run-dialog',
-                                  Shell.ActionMode.NORMAL |
-                                  Shell.ActionMode.OVERVIEW,
-                                  sessionMode.hasRunDialog ? openRunDialog : null);
+        Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
+        sessionMode.hasRunDialog ? openRunDialog : null);
 
     if (!sessionMode.hasRunDialog) {
         if (runDialog)
index cc768a42ba112709d670cbb22ad25cd5cf11f10a..30b2af1f999be51d29798fcdfdeb24154310c057 100644 (file)
@@ -216,12 +216,10 @@ class ScaleLayout extends Clutter.BinLayout {
 
 const LabelExpanderLayout = GObject.registerClass({
     Properties: {
-        'expansion': GObject.ParamSpec.double('expansion',
-                                              'Expansion',
-                                              'Expansion of the layout, between 0 (collapsed) ' +
-                                              'and 1 (fully expanded',
-                                              GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
-                                              0, 1, 0),
+        'expansion': GObject.ParamSpec.double(
+            'expansion', 'Expansion', 'Expansion',
+            GObject.ParamFlags.READABLE | GObject.ParamFlags.WRITABLE,
+            0, 1, 0),
     },
 }, class LabelExpanderLayout extends Clutter.LayoutManager {
     _init(params) {
@@ -418,7 +416,7 @@ export const Message = GObject.registerClass({
     setBody(text) {
         this._bodyText = text;
         this.bodyLabel.setMarkup(text ? text.replace(/\n/g, ' ') : '',
-                                 this._useBodyMarkup);
+            this._useBodyMarkup);
         if (this._expandedLabel)
             this._expandedLabel.setMarkup(text, this._useBodyMarkup);
     }
@@ -479,7 +477,7 @@ export const Message = GObject.registerClass({
 
         if (this._bodyStack.get_n_children() < 2) {
             this._expandedLabel = new URLHighlighter(this._bodyText,
-                                                     true, this._useBodyMarkup);
+                true, this._useBodyMarkup);
             this.setExpandedBody(this._expandedLabel);
         }
 
index 2bdf0af6226c824d5c6c10f04ee96319184e325b..ec411ff20002573a4e2a575256169f715623fa2c 100644 (file)
@@ -831,8 +831,8 @@ export const MessageTray = GObject.registerClass({
 
         let constraint = new Layout.MonitorConstraint({primary: true});
         Main.layoutManager.panelBox.bind_property('visible',
-                                                  constraint, 'work-area',
-                                                  GObject.BindingFlags.SYNC_CREATE);
+            constraint, 'work-area',
+            GObject.BindingFlags.SYNC_CREATE);
         this.add_constraint(constraint);
 
         this._bannerBin = new St.Widget({
@@ -846,9 +846,9 @@ export const MessageTray = GObject.registerClass({
             layout_manager: new Clutter.BinLayout(),
         });
         this._bannerBin.connect('key-release-event',
-                                this._onNotificationKeyRelease.bind(this));
+            this._onNotificationKeyRelease.bind(this));
         this._bannerBin.connect('notify::hover',
-                                this._onNotificationHoverChanged.bind(this));
+            this._onNotificationHoverChanged.bind(this));
         this.add_actor(this._bannerBin);
 
         this._notificationFocusGrabber = new FocusGrabber(this._bannerBin);
@@ -885,30 +885,29 @@ export const MessageTray = GObject.registerClass({
         Main.sessionMode.connect('updated', this._sessionUpdated.bind(this));
 
         Main.overview.connect('window-drag-begin',
-                              this._onDragBegin.bind(this));
+            this._onDragBegin.bind(this));
         Main.overview.connect('window-drag-cancelled',
-                              this._onDragEnd.bind(this));
+            this._onDragEnd.bind(this));
         Main.overview.connect('window-drag-end',
-                              this._onDragEnd.bind(this));
+            this._onDragEnd.bind(this));
 
         Main.overview.connect('item-drag-begin',
-                              this._onDragBegin.bind(this));
+            this._onDragBegin.bind(this));
         Main.overview.connect('item-drag-cancelled',
-                              this._onDragEnd.bind(this));
+            this._onDragEnd.bind(this));
         Main.overview.connect('item-drag-end',
-                              this._onDragEnd.bind(this));
+            this._onDragEnd.bind(this));
 
         Main.xdndHandler.connect('drag-begin',
-                                 this._onDragBegin.bind(this));
+            this._onDragBegin.bind(this));
         Main.xdndHandler.connect('drag-end',
-                                 this._onDragEnd.bind(this));
+            this._onDragEnd.bind(this));
 
         Main.wm.addKeybinding('focus-active-notification',
-                              new Gio.Settings({schema_id: SHELL_KEYBINDINGS_SCHEMA}),
-                              Meta.KeyBindingFlags.NONE,
-                              Shell.ActionMode.NORMAL |
-                              Shell.ActionMode.OVERVIEW,
-                              this._expandActiveNotification.bind(this));
+            new Gio.Settings({schema_id: SHELL_KEYBINDINGS_SCHEMA}),
+            Meta.KeyBindingFlags.NONE,
+            Shell.ActionMode.NORMAL | Shell.ActionMode.OVERVIEW,
+            this._expandActiveNotification.bind(this));
 
         this._sources = new Set();
 
@@ -1044,7 +1043,7 @@ export const MessageTray = GObject.registerClass({
             let full = this.queueCount + bannerCount >= MAX_NOTIFICATIONS_IN_QUEUE;
             if (!full || notification.urgency == Urgency.CRITICAL) {
                 notification.connect('destroy',
-                                     this._onNotificationDestroy.bind(this));
+                    this._onNotificationDestroy.bind(this));
                 this._notificationQueue.push(notification);
                 this._notificationQueue.sort(
                     (n1, n2) => n2.urgency - n1.urgency);
index 9fa2b7dad5491eaac409b4b1b1f65d1b89ebe170..c0ddabd607c0573acbc4968bfea029c767ae6ba0 100644 (file)
@@ -26,11 +26,12 @@ export const State = {
 
 export const ModalDialog = GObject.registerClass({
     Properties: {
-        'state': GObject.ParamSpec.int('state', 'Dialog state', 'state',
-                                       GObject.ParamFlags.READABLE,
-                                       Math.min(...Object.values(State)),
-                                       Math.max(...Object.values(State)),
-                                       State.CLOSED),
+        'state': GObject.ParamSpec.int(
+            'state', 'Dialog state', 'state',
+            GObject.ParamFlags.READABLE,
+            Math.min(...Object.values(State)),
+            Math.max(...Object.values(State)),
+            State.CLOSED),
     },
     Signals: {'opened': {}, 'closed': {}},
 }, class ModalDialog extends St.Widget {
index e040bf2daa41ae5e7e39b3ce09d014b653c88d98..1b11c4c6f81c596f621c154fe456620419ad736b 100644 (file)
@@ -254,9 +254,9 @@ class MediaSection extends MessageList.MessageListSection {
         this._players = new Map();
 
         this._proxy = new DBusProxy(Gio.DBus.session,
-                                    'org.freedesktop.DBus',
-                                    '/org/freedesktop/DBus',
-                                    this._onProxyReady.bind(this));
+            'org.freedesktop.DBus',
+            '/org/freedesktop/DBus',
+            this._onProxyReady.bind(this));
     }
 
     get allowed() {
@@ -294,7 +294,7 @@ class MediaSection extends MessageList.MessageListSection {
             this._addPlayer(name);
         });
         this._proxy.connectSignal('NameOwnerChanged',
-                                  this._onNameOwnerChanged.bind(this));
+            this._onNameOwnerChanged.bind(this));
     }
 
     _onNameOwnerChanged(proxy, sender, [name, oldOwner, newOwner]) {
index 3f134b624a98eb78e4ab737ebf15d87bfb2b3309..4e49b911a61bc6e211b15b4b05304aaa687b5a9c 100644 (file)
@@ -48,8 +48,13 @@ class FdoNotificationDaemon {
                 width, height, rowStride, hasAlpha,
                 bitsPerSample, nChannels_, data,
             ] = hints['image-data'];
-            return Shell.util_create_pixbuf_from_data(data, GdkPixbuf.Colorspace.RGB, hasAlpha,
-                                                      bitsPerSample, width, height, rowStride);
+            return Shell.util_create_pixbuf_from_data(data,
+                GdkPixbuf.Colorspace.RGB,
+                hasAlpha,
+                bitsPerSample,
+                width,
+                height,
+                rowStride);
         } else if (hints['image-path']) {
             return this._iconForNotificationData(hints['image-path']);
         }
@@ -329,12 +334,12 @@ class FdoNotificationDaemon {
 
     _emitNotificationClosed(id, reason) {
         this._dbusImpl.emit_signal('NotificationClosed',
-                                   GLib.Variant.new('(uu)', [id, reason]));
+            GLib.Variant.new('(uu)', [id, reason]));
     }
 
     _emitActionInvoked(id, action) {
         this._dbusImpl.emit_signal('ActionInvoked',
-                                   GLib.Variant.new('(us)', [id, action]));
+            GLib.Variant.new('(us)', [id, action]));
     }
 }
 
@@ -354,9 +359,9 @@ class FdoNotificationDaemonSource extends MessageTray.Source {
 
         if (sender) {
             this._nameWatcherId = Gio.DBus.session.watch_name(sender,
-                                                              Gio.BusNameWatcherFlags.NONE,
-                                                              null,
-                                                              this._onNameVanished.bind(this));
+                Gio.BusNameWatcherFlags.NONE,
+                null,
+                this._onNameVanished.bind(this));
         } else {
             this._nameWatcherId = 0;
         }
index 1e6aff74073b2982a5444727fe349ae2c71fab4e..b27973af1094f881b7bf8c61ef4192eb6ff6025a 100644 (file)
@@ -57,7 +57,7 @@ export class OsdMonitorLabeler {
         this._osdLabels = [];
         this._monitorLabels = null;
         Main.layoutManager.connect('monitors-changed',
-                                   this._reset.bind(this));
+            this._reset.bind(this));
         this._reset();
     }
 
@@ -76,10 +76,11 @@ export class OsdMonitorLabeler {
             return this._client == client;
 
         this._client = client;
-        this._clientWatchId = Gio.bus_watch_name(Gio.BusType.SESSION, client, 0, null,
-                                                 (c, name) => {
-                                                     this.hide(name);
-                                                 });
+        this._clientWatchId = Gio.bus_watch_name(Gio.BusType.SESSION,
+            client, 0, null,
+            (c, name) => {
+                this.hide(name);
+            });
         return true;
     }
 
index 2dfde9c5d0c88829bd6d327ad2986543c27a8b8d..76dc1620a3bc85248e253f64d579e1b78efc4669 100644 (file)
@@ -148,7 +148,7 @@ export class OsdWindowManager {
     constructor() {
         this._osdWindows = [];
         Main.layoutManager.connect('monitors-changed',
-                                   this._monitorsChanged.bind(this));
+            this._monitorsChanged.bind(this));
         this._monitorsChanged();
     }
 
index d7858182d6d59ecba98b1efb8ab8a1aff708743b..fb68c85a42f19701ea447aaa1316cbcfe5780dc3 100644 (file)
@@ -223,7 +223,7 @@ export class Overview extends Signals.EventEmitter {
 
 
         Main.layoutManager.overviewGroup.connect('scroll-event',
-                                                 this._onScrollEvent.bind(this));
+            this._onScrollEvent.bind(this));
         Main.xdndHandler.connect('drag-begin', this._onDragBegin.bind(this));
         Main.xdndHandler.connect('drag-end', this._onDragEnd.bind(this));
 
@@ -367,7 +367,7 @@ export class Overview extends Signals.EventEmitter {
                 () => {
                     this._windowSwitchTimeoutId = 0;
                     Main.activateWindow(dragEvent.targetActor._delegate.metaWindow,
-                                        this._windowSwitchTimestamp);
+                        this._windowSwitchTimestamp);
                     this.hide();
                     this._lastHoveredWindow = null;
                     return GLib.SOURCE_REMOVE;
index 22de8e1bbbba600fa090beb5641a899747e2c962..5e8ed80f5fab5745f3cfd9b14a693d651bc4ccbf 100644 (file)
@@ -292,21 +292,18 @@ const ActionEditor = GObject.registerClass({
 
 const PadDiagram = GObject.registerClass({
     Properties: {
-        'left-handed': GObject.ParamSpec.boolean('left-handed',
-                                                 'left-handed', 'Left handed',
-                                                 GObject.ParamFlags.READWRITE |
-                                                 GObject.ParamFlags.CONSTRUCT_ONLY,
-                                                 false),
-        'image': GObject.ParamSpec.string('image', 'image', 'Image',
-                                          GObject.ParamFlags.READWRITE |
-                                          GObject.ParamFlags.CONSTRUCT_ONLY,
-                                          null),
-        'editor-actor': GObject.ParamSpec.object('editor-actor',
-                                                 'editor-actor',
-                                                 'Editor actor',
-                                                 GObject.ParamFlags.READWRITE |
-                                                 GObject.ParamFlags.CONSTRUCT_ONLY,
-                                                 Clutter.Actor.$gtype),
+        'left-handed': GObject.ParamSpec.boolean(
+            'left-handed', 'left-handed', 'Left handed',
+            GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
+            false),
+        'image': GObject.ParamSpec.string(
+            'image', 'image', 'Image',
+            GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
+            null),
+        'editor-actor': GObject.ParamSpec.object(
+            'editor-actor', 'editor-actor', 'Editor actor',
+            GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT_ONLY,
+            Clutter.Actor.$gtype),
     },
 }, class PadDiagram extends St.DrawingArea {
     _init(params) {
@@ -899,8 +896,9 @@ export const PadOsd = GObject.registerClass({
         this._editedAction = {type, number, dir, mode};
 
         const settingsPath = `${this._settings.path}${key}/`;
-        this._editedActionSettings = Gio.Settings.new_with_path('org.gnome.desktop.peripherals.tablet.pad-button',
-                                                                settingsPath);
+        this._editedActionSettings = Gio.Settings.new_with_path(
+            'org.gnome.desktop.peripherals.tablet.pad-button',
+            settingsPath);
         this._actionEditor.setSettings(this._editedActionSettings, type);
         this._padDiagram.startEdition(type, number, dir);
     }
@@ -964,9 +962,10 @@ export class PadOsdService extends Signals.EventEmitter {
         });
 
         if (padDevice == null) {
-            invocation.return_error_literal(Gio.IOErrorEnum,
-                                            Gio.IOErrorEnum.CANCELLED,
-                                            'Invalid params');
+            invocation.return_error_literal(
+                Gio.IOErrorEnum,
+                Gio.IOErrorEnum.CANCELLED,
+                'Invalid params');
             return;
         }
 
index 7507083530c4cb54559ff9b0a82ddcc8d7073204..23750562234fb5d28ae9f845a1b4285b386a22ec 100644 (file)
@@ -79,7 +79,7 @@ const AppMenuButton = GObject.registerClass({
 
         let textureCache = St.TextureCache.get_default();
         textureCache.connect('icon-theme-changed',
-                             this._onIconThemeChanged.bind(this));
+            this._onIconThemeChanged.bind(this));
 
         let iconEffect = new Clutter.DesaturateEffect();
         this._iconBox = new St.Bin({
@@ -496,8 +496,9 @@ class Panel extends St.Widget {
         });
 
         Main.layoutManager.panelBox.add(this);
-        Main.ctrlAltTabManager.addGroup(this, _('Top Bar'), 'focus-top-bar-symbolic',
-                                        {sortGroup: CtrlAltTab.SortGroup.TOP});
+        Main.ctrlAltTabManager.addGroup(this,
+            _('Top Bar'), 'focus-top-bar-symbolic',
+            {sortGroup: CtrlAltTab.SortGroup.TOP});
 
         Main.sessionMode.connect('updated', this._updatePanel.bind(this));
 
@@ -542,14 +543,13 @@ class Panel extends St.Widget {
         childBox.y1 = 0;
         childBox.y2 = allocHeight;
         if (this.get_text_direction() == Clutter.TextDirection.RTL) {
-            childBox.x1 = Math.max(allocWidth - Math.min(Math.floor(sideWidth),
-                                                         leftNaturalWidth),
-                                   0);
+            childBox.x1 = Math.max(
+                allocWidth - Math.min(Math.floor(sideWidth), leftNaturalWidth),
+                0);
             childBox.x2 = allocWidth;
         } else {
             childBox.x1 = 0;
-            childBox.x2 = Math.min(Math.floor(sideWidth),
-                                   leftNaturalWidth);
+            childBox.x2 = Math.min(Math.floor(sideWidth), leftNaturalWidth);
         }
         this._leftBox.allocate(childBox);
 
@@ -563,12 +563,11 @@ class Panel extends St.Widget {
         childBox.y2 = allocHeight;
         if (this.get_text_direction() == Clutter.TextDirection.RTL) {
             childBox.x1 = 0;
-            childBox.x2 = Math.min(Math.floor(sideWidth),
-                                   rightNaturalWidth);
+            childBox.x2 = Math.min(Math.floor(sideWidth), rightNaturalWidth);
         } else {
-            childBox.x1 = Math.max(allocWidth - Math.min(Math.floor(sideWidth),
-                                                         rightNaturalWidth),
-                                   0);
+            childBox.x1 = Math.max(
+                allocWidth - Math.min(Math.floor(sideWidth), rightNaturalWidth),
+                0);
             childBox.x2 = allocWidth;
         }
         this._rightBox.allocate(childBox);
index 08a35952861962bf07b29ab6d0a17985d526ffa8..1bf78086c88c7e7d2d8abd91b26ba7e224af9ffd 100644 (file)
@@ -65,12 +65,14 @@ export function arrowIcon(side) {
 
 export const PopupBaseMenuItem = GObject.registerClass({
     Properties: {
-        'active': GObject.ParamSpec.boolean('active', 'active', 'active',
-                                            GObject.ParamFlags.READWRITE,
-                                            false),
-        'sensitive': GObject.ParamSpec.boolean('sensitive', 'sensitive', 'sensitive',
-                                               GObject.ParamFlags.READWRITE,
-                                               true),
+        'active': GObject.ParamSpec.boolean(
+            'active', 'active', 'active',
+            GObject.ParamFlags.READWRITE,
+            false),
+        'sensitive': GObject.ParamSpec.boolean(
+            'sensitive', 'sensitive', 'sensitive',
+            GObject.ParamFlags.READWRITE,
+            true),
     },
     Signals: {
         'activate': {param_types: [Clutter.Event.$gtype]},
@@ -296,7 +298,7 @@ class PopupSeparatorMenuItem extends PopupBaseMenuItem {
         this.label_actor = this.label;
 
         this.label.connect('notify::text',
-                           this._syncVisibility.bind(this));
+            this._syncVisibility.bind(this));
         this._syncVisibility();
 
         this._separator = new St.Widget({
index 03f0edc7768afb8e7d1e8f543f02110c3a48b1b5..97c84f122a47f3bc60206f52dc7cdcbbbc551b04 100644 (file)
@@ -232,8 +232,13 @@ class RemoteSearchProvider {
                 width, height, rowStride, hasAlpha,
                 bitsPerSample, nChannels_, data,
             ] = meta['icon-data'];
-            gicon = Shell.util_create_pixbuf_from_data(data, GdkPixbuf.Colorspace.RGB, hasAlpha,
-                                                       bitsPerSample, width, height, rowStride);
+            gicon = Shell.util_create_pixbuf_from_data(data,
+                GdkPixbuf.Colorspace.RGB,
+                hasAlpha,
+                bitsPerSample,
+                width,
+                height,
+                rowStride);
         }
 
         if (gicon)
index b39242136ead80b6e59c8a47c0a9cfb1ca928584..27bbb11b06f0ca5d9c556b21fb1d24e9a1a4b16e 100644 (file)
@@ -103,7 +103,7 @@ export class ScreenShield extends Signals.EventEmitter {
 
         this._loginManager = LoginManager.getLoginManager();
         this._loginManager.connect('prepare-for-sleep',
-                                   this._prepareForSleep.bind(this));
+            this._prepareForSleep.bind(this));
 
         this._loginSession = null;
         this._getLoginSession();
index c412ecdd36da352bab8216a8620ed34dcb60609e..92b6f1ce0c804543ed80c8df3573498186fd2c2f 100644 (file)
@@ -2328,9 +2328,8 @@ export class ScreenshotService {
         }
 
         let shooter = new Shell.Screenshot();
-        shooter._watchNameId =
-                        Gio.bus_watch_name(Gio.BusType.SESSION, sender, 0, null,
-                                           this._onNameVanished.bind(this));
+        shooter._watchNameId = Gio.bus_watch_name(Gio.BusType.SESSION,
+            sender, 0, null, this._onNameVanished.bind(this));
 
         this._screenShooter.set(sender, shooter);
 
@@ -2460,9 +2459,10 @@ export class ScreenshotService {
         let [x, y, width, height, flash, filename] = params;
         [x, y, width, height] = this._scaleArea(x, y, width, height);
         if (!this._checkArea(x, y, width, height)) {
-            invocation.return_error_literal(Gio.IOErrorEnum,
-                                            Gio.IOErrorEnum.CANCELLED,
-                                            'Invalid params');
+            invocation.return_error_literal(
+                Gio.IOErrorEnum,
+                Gio.IOErrorEnum.CANCELLED,
+                'Invalid params');
             return;
         }
         let screenshot = await this._createScreenshot(invocation);
@@ -2565,9 +2565,10 @@ export class ScreenshotService {
         let [x, y, width, height] = params;
         [x, y, width, height] = this._scaleArea(x, y, width, height);
         if (!this._checkArea(x, y, width, height)) {
-            invocation.return_error_literal(Gio.IOErrorEnum,
-                                            Gio.IOErrorEnum.CANCELLED,
-                                            'Invalid params');
+            invocation.return_error_literal(
+                Gio.IOErrorEnum,
+                Gio.IOErrorEnum.CANCELLED,
+                'Invalid params');
             return;
         }
         let flashspot = new Flashspot({x, y, width, height});
index d0413e6091ef26cfc46f507ebfaaab2c4053886f..9a32149c83807d26b5cc58d8edb3916ac91d72aa 100644 (file)
@@ -172,9 +172,8 @@ export async function disableHelperAutoExit() {
  * within a performance automation script
  */
 export function defineScriptEvent(name, description) {
-    Shell.PerfLog.get_default().define_event(`script.${name}`,
-                                             description,
-                                             '');
+    Shell.PerfLog.get_default().define_event(
+        `script.${name}`, description, '');
 }
 
 /**
@@ -218,9 +217,10 @@ function _collect(scriptModule, outputFile) {
 
     if (outputFile) {
         let f = Gio.file_new_for_path(outputFile);
-        let raw = f.replace(null, false,
-                            Gio.FileCreateFlags.NONE,
-                            null);
+        let raw = f.replace(null,
+            false,
+            Gio.FileCreateFlags.NONE,
+            null);
         let out = Gio.BufferedOutputStream.new_sized(raw, 4096);
         Shell.write_string_to_stream(out, '{\n');
 
@@ -264,10 +264,10 @@ function _collect(scriptModule, outputFile) {
             first = false;
 
             Shell.write_string_to_stream(out,
-                                         `{ "name": ${JSON.stringify(name)},\n` +
-                                         `    "description": ${JSON.stringify(metric.description)},\n` +
-                                         `    "units": ${JSON.stringify(metric.units)},\n` +
-                                         `    "value": ${JSON.stringify(metric.value)} }`);
+                `{ "name": ${JSON.stringify(name)},\n` +
+                `    "description": ${JSON.stringify(metric.description)},\n` +
+                `    "units": ${JSON.stringify(metric.units)},\n` +
+                `    "value": ${JSON.stringify(metric.value)} }`);
         }
         Shell.write_string_to_stream(out, ' ]');
 
index d1cfcd51dec89ac5d09d4ff815b348cb4482ad27..b332e24d6f57575327b0f4423e004b4c701bf3e0 100644 (file)
@@ -135,8 +135,9 @@ class GridSearchResult extends SearchResult {
 
         this.style_class = 'grid-search-result';
 
-        this.icon = new IconGrid.BaseIcon(this.metaInfo['name'],
-                                          {createIcon: this.metaInfo['createIcon']});
+        this.icon = new IconGrid.BaseIcon(this.metaInfo['name'], {
+            createIcon: this.metaInfo['createIcon'],
+        });
         let content = new St.Bin({
             child: this.icon,
             x_align: Clutter.ActorAlign.START,
index bdb15d2249ac797d1f9e67b1762871c290a870a9..897000d85752c515c07ed3bd4c215e4900dedac9 100644 (file)
@@ -194,8 +194,9 @@ export class SessionMode extends Signals.EventEmitter {
         let params = _modes[this.currentMode];
         let defaults;
         if (params.parentMode) {
-            defaults = Params.parse(_modes[params.parentMode],
-                                    _modes[DEFAULT_MODE]);
+            defaults = Params.parse(
+                _modes[params.parentMode],
+                _modes[DEFAULT_MODE]);
         } else {
             defaults = _modes[DEFAULT_MODE];
         }
index eb37eff3be9dbaca94cf698fc8680ece5fd09518..c71169da717286a53ca3fab997bfb5479b4d031e 100644 (file)
@@ -41,9 +41,9 @@ export class GnomeShell {
 
         this._cachedOverviewVisible = false;
         Main.overview.connect('showing',
-                              this._checkOverviewVisibleChanged.bind(this));
+            this._checkOverviewVisibleChanged.bind(this));
         Main.overview.connect('hidden',
-                              this._checkOverviewVisibleChanged.bind(this));
+            this._checkOverviewVisibleChanged.bind(this));
     }
 
     /**
@@ -303,8 +303,8 @@ export class GnomeShell {
         this._grabbedAccelerators.set(bindingAction, sender);
 
         if (!this._grabbers.has(sender)) {
-            let id = Gio.bus_watch_name(Gio.BusType.SESSION, sender, 0, null,
-                                        this._onGrabberBusNameVanished.bind(this));
+            let id = Gio.bus_watch_name(Gio.BusType.SESSION,
+                sender, 0, null, this._onGrabberBusNameVanished.bind(this));
             this._grabbers.set(sender, id);
         }
 
@@ -409,7 +409,7 @@ class GnomeShellExtensions {
         });
 
         Main.extensionManager.connect('extension-state-changed',
-                                      this._extensionStateChanged.bind(this));
+            this._extensionStateChanged.bind(this));
     }
 
     ListExtensions() {
@@ -490,7 +490,7 @@ class GnomeShellExtensions {
             new GLib.Variant('(sa{sv})', [newState.uuid, state]));
 
         this._dbusImpl.emit_signal('ExtensionStatusChanged',
-                                   GLib.Variant.new('(sis)', [newState.uuid, newState.state, newState.error]));
+            new GLib.Variant('(sis)', [newState.uuid, newState.state, newState.error]));
     }
 }
 
index ffcf9c38435273b422772bb6c55eaaf29fb9fe17..0b53af6b099a84b71e178c882fc25d5903585050 100644 (file)
@@ -141,8 +141,9 @@ export function addContextMenu(entry, params) {
     params = Params.parse(params, {actionMode: Shell.ActionMode.POPUP});
 
     entry.menu = new EntryMenu(entry);
-    entry._menuManager = new PopupMenu.PopupMenuManager(entry,
-                                                        {actionMode: params.actionMode});
+    entry._menuManager = new PopupMenu.PopupMenuManager(entry, {
+        actionMode: params.actionMode,
+    });
     entry._menuManager.addMenu(entry.menu);
 
     // Add an event handler to both the entry and its clutter_text; the former
index cc3d151487f17bcae9d7ec345d4c16639d0974c1..39f1ab598b3d8b276897716e5beea9627d933769 100644 (file)
@@ -65,15 +65,15 @@ export class ShellMountOperation {
         this.mountOp = new Shell.MountOperation();
 
         this.mountOp.connect('ask-question',
-                             this._onAskQuestion.bind(this));
+            this._onAskQuestion.bind(this));
         this.mountOp.connect('ask-password',
-                             this._onAskPassword.bind(this));
+            this._onAskPassword.bind(this));
         this.mountOp.connect('show-processes-2',
-                             this._onShowProcesses2.bind(this));
+            this._onShowProcesses2.bind(this));
         this.mountOp.connect('aborted',
-                             this.close.bind(this));
+            this.close.bind(this));
         this.mountOp.connect('show-unmount-progress',
-                             this._onShowUnmountProgress.bind(this));
+            this._onShowUnmountProgress.bind(this));
     }
 
     _closeExistingDialog() {
@@ -543,8 +543,9 @@ export class GnomeShellMountOpHandler {
     constructor() {
         this._dbusImpl = Gio.DBusExportedObject.wrapJSObject(GnomeShellMountOpIface, this);
         this._dbusImpl.export(Gio.DBus.session, '/org/gtk/MountOperationHandler');
-        Gio.bus_own_name_on_connection(Gio.DBus.session, 'org.gtk.MountOperationHandler',
-                                       Gio.BusNameOwnerFlags.REPLACE, null, null);
+        Gio.bus_own_name_on_connection(Gio.DBus.session,
+            'org.gtk.MountOperationHandler',
+            Gio.BusNameOwnerFlags.REPLACE, null, null);
 
         this._dialog = null;
 
index e3c26c66f9c23ae10109e24a4ebb8267c4369d4e..92d26a7fe4ba75bdb0e4c794e29be1c9091e2040 100644 (file)
@@ -46,34 +46,39 @@ class ATIndicator extends PanelMenu.Button {
         let highContrast = this._buildItem(_('High Contrast'), A11Y_INTERFACE_SCHEMA, KEY_HIGH_CONTRAST);
         this.menu.addMenuItem(highContrast);
 
-        let magnifier = this._buildItem(_('Zoom'), APPLICATIONS_SCHEMA,
-                                        'screen-magnifier-enabled');
+        const magnifier = this._buildItem(_('Zoom'),
+            APPLICATIONS_SCHEMA, 'screen-magnifier-enabled');
         this.menu.addMenuItem(magnifier);
 
         let textZoom = this._buildFontItem();
         this.menu.addMenuItem(textZoom);
 
-        let screenReader = this._buildItem(_('Screen Reader'), APPLICATIONS_SCHEMA,
-                                           'screen-reader-enabled');
+        const screenReader = this._buildItem(_('Screen Reader'),
+            APPLICATIONS_SCHEMA, 'screen-reader-enabled');
         this.menu.addMenuItem(screenReader);
 
-        let screenKeyboard = this._buildItem(_('Screen Keyboard'), APPLICATIONS_SCHEMA,
-                                             'screen-keyboard-enabled');
+        const screenKeyboard = this._buildItem(_('Screen Keyboard'),
+            APPLICATIONS_SCHEMA, 'screen-keyboard-enabled');
         this.menu.addMenuItem(screenKeyboard);
 
-        let visualBell = this._buildItem(_('Visual Alerts'), WM_SCHEMA, KEY_VISUAL_BELL);
+        const visualBell = this._buildItem(_('Visual Alerts'),
+            WM_SCHEMA, KEY_VISUAL_BELL);
         this.menu.addMenuItem(visualBell);
 
-        let stickyKeys = this._buildItem(_('Sticky Keys'), A11Y_KEYBOARD_SCHEMA, KEY_STICKY_KEYS_ENABLED);
+        const stickyKeys = this._buildItem(_('Sticky Keys'),
+            A11Y_KEYBOARD_SCHEMA, KEY_STICKY_KEYS_ENABLED);
         this.menu.addMenuItem(stickyKeys);
 
-        let slowKeys = this._buildItem(_('Slow Keys'), A11Y_KEYBOARD_SCHEMA, KEY_SLOW_KEYS_ENABLED);
+        const slowKeys = this._buildItem(_('Slow Keys'),
+            A11Y_KEYBOARD_SCHEMA, KEY_SLOW_KEYS_ENABLED);
         this.menu.addMenuItem(slowKeys);
 
-        let bounceKeys = this._buildItem(_('Bounce Keys'), A11Y_KEYBOARD_SCHEMA, KEY_BOUNCE_KEYS_ENABLED);
+        const bounceKeys = this._buildItem(_('Bounce Keys'),
+            A11Y_KEYBOARD_SCHEMA, KEY_BOUNCE_KEYS_ENABLED);
         this.menu.addMenuItem(bounceKeys);
 
-        let mouseKeys = this._buildItem(_('Mouse Keys'), A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
+        const mouseKeys = this._buildItem(_('Mouse Keys'),
+            A11Y_KEYBOARD_SCHEMA, KEY_MOUSE_KEYS_ENABLED);
         this.menu.addMenuItem(mouseKeys);
 
         this.menu.addMenuItem(new PopupMenu.PopupSeparatorMenuItem());
index fe90f10b65f6203cd266da09c786d362ef73a1d1..49c7fb407b2e097adbc0b03f3d467ab336a36130 100644 (file)
@@ -201,12 +201,12 @@ class InputSourceSystemSettings extends InputSourceSettings {
         this._reload();
 
         Gio.DBus.system.signal_subscribe(this._BUS_NAME,
-                                         this._BUS_PROPS_IFACE,
-                                         'PropertiesChanged',
-                                         this._BUS_PATH,
-                                         null,
-                                         Gio.DBusSignalFlags.NONE,
-                                         this._reload.bind(this));
+            this._BUS_PROPS_IFACE,
+            'PropertiesChanged',
+            this._BUS_PATH,
+            null,
+            Gio.DBusSignalFlags.NONE,
+            this._reload.bind(this));
     }
 
     async _reload() {
@@ -330,16 +330,16 @@ export class InputSourceManager extends Signals.EventEmitter {
         this._mruSourcesBackup = null;
         this._keybindingAction =
             Main.wm.addKeybinding('switch-input-source',
-                                  new Gio.Settings({schema_id: 'org.gnome.desktop.wm.keybindings'}),
-                                  Meta.KeyBindingFlags.NONE,
-                                  Shell.ActionMode.ALL,
-                                  this._switchInputSource.bind(this));
+                new Gio.Settings({schema_id: 'org.gnome.desktop.wm.keybindings'}),
+                Meta.KeyBindingFlags.NONE,
+                Shell.ActionMode.ALL,
+                this._switchInputSource.bind(this));
         this._keybindingActionBackward =
             Main.wm.addKeybinding('switch-input-source-backward',
-                                  new Gio.Settings({schema_id: 'org.gnome.desktop.wm.keybindings'}),
-                                  Meta.KeyBindingFlags.IS_REVERSED,
-                                  Shell.ActionMode.ALL,
-                                  this._switchInputSource.bind(this));
+                new Gio.Settings({schema_id: 'org.gnome.desktop.wm.keybindings'}),
+                Meta.KeyBindingFlags.IS_REVERSED,
+                Shell.ActionMode.ALL,
+                this._switchInputSource.bind(this));
         if (Main.sessionMode.isGreeter)
             this._settings = new InputSourceSystemSettings();
         else
@@ -601,10 +601,10 @@ export class InputSourceManager extends Signals.EventEmitter {
         let inputSourcesByShortName = {};
         for (let i = 0; i < infosList.length; i++) {
             let is = new InputSource(infosList[i].type,
-                                     infosList[i].id,
-                                     infosList[i].displayName,
-                                     infosList[i].shortName,
-                                     i);
+                infosList[i].id,
+                infosList[i].displayName,
+                infosList[i].shortName,
+                i);
             is.connect('activate', this.activateInputSource.bind(this));
 
             if (!(is.shortName in inputSourcesByShortName))
@@ -752,7 +752,7 @@ export class InputSourceManager extends Signals.EventEmitter {
 
         if (this._sourcesPerWindow && this._focusWindowNotifyId == 0) {
             this._focusWindowNotifyId = global.display.connect('notify::focus-window',
-                                                               this._setPerWindowInputSource.bind(this));
+                this._setPerWindowInputSource.bind(this));
             Main.overview.connectObject(
                 'showing', this._setPerWindowInputSource.bind(this),
                 'hidden', this._setPerWindowInputSource.bind(this), this);
@@ -1020,13 +1020,13 @@ class InputSourceIndicator extends PanelMenu.Button {
                         if (group[j] == item) {
                             item.setOrnament(PopupMenu.Ornament.DOT);
                             item.prop.set_state(IBus.PropState.CHECKED);
-                            ibusManager.activateProperty(item.prop.get_key(),
-                                                         IBus.PropState.CHECKED);
+                            ibusManager.activateProperty(
+                                item.prop.get_key(), IBus.PropState.CHECKED);
                         } else {
                             group[j].setOrnament(PopupMenu.Ornament.NONE);
                             group[j].prop.set_state(IBus.PropState.UNCHECKED);
-                            ibusManager.activateProperty(group[j].prop.get_key(),
-                                                         IBus.PropState.UNCHECKED);
+                            ibusManager.activateProperty(
+                                group[j].prop.get_key(), IBus.PropState.UNCHECKED);
                         }
                     }
                 });
@@ -1038,12 +1038,12 @@ class InputSourceIndicator extends PanelMenu.Button {
                 item.connect('toggled', () => {
                     if (item.state) {
                         item.prop.set_state(IBus.PropState.CHECKED);
-                        ibusManager.activateProperty(item.prop.get_key(),
-                                                     IBus.PropState.CHECKED);
+                        ibusManager.activateProperty(
+                            item.prop.get_key(), IBus.PropState.CHECKED);
                     } else {
                         item.prop.set_state(IBus.PropState.UNCHECKED);
-                        ibusManager.activateProperty(item.prop.get_key(),
-                                                     IBus.PropState.UNCHECKED);
+                        ibusManager.activateProperty(
+                            item.prop.get_key(), IBus.PropState.UNCHECKED);
                     }
                 });
                 break;
@@ -1052,8 +1052,8 @@ class InputSourceIndicator extends PanelMenu.Button {
                 item = new PopupMenu.PopupMenuItem(prop.get_label().get_text());
                 item.prop = prop;
                 item.connect('activate', () => {
-                    ibusManager.activateProperty(item.prop.get_key(),
-                                                 item.prop.get_state());
+                    ibusManager.activateProperty(
+                        item.prop.get_key(), item.prop.get_state());
                 });
                 break;
 
index 020feb4f8c7f92737e573cd042a29feb5f188625..c9553f8c1fb5b07f8c0adb200b556517adc67acd 100644 (file)
@@ -87,10 +87,10 @@ const GeoclueAgent = GObject.registerClass({
         this.connect('notify::enabled', this._onMaxAccuracyLevelChanged.bind(this));
 
         this._watchId = Gio.bus_watch_name(Gio.BusType.SYSTEM,
-                                           'org.freedesktop.GeoClue2',
-                                           0,
-                                           this._connectToGeoclue.bind(this),
-                                           this._onGeoclueVanished.bind(this));
+            'org.freedesktop.GeoClue2',
+            0,
+            this._connectToGeoclue.bind(this),
+            this._onGeoclueVanished.bind(this));
         this._onMaxAccuracyLevelChanged();
         this._connectToGeoclue();
         this._connectToPermissionStore();
@@ -140,9 +140,9 @@ const GeoclueAgent = GObject.registerClass({
 
         this._connecting = true;
         new GeoclueManager(Gio.DBus.system,
-                           'org.freedesktop.GeoClue2',
-                           '/org/freedesktop/GeoClue2/Manager',
-                           this._onManagerProxyReady.bind(this));
+            'org.freedesktop.GeoClue2',
+            '/org/freedesktop/GeoClue2/Manager',
+            this._onManagerProxyReady.bind(this));
         return true;
     }
 
index 218ff58dd918148d12335eab404708a8b7a8695f..0005339d0f5e1e3c3705a208bfa8d5e1a439b2c2 100644 (file)
@@ -97,9 +97,7 @@ class Client extends Signals.EventEmitter {
 
     _onDeviceAdded(proxy, emitter, params) {
         let [path] = params;
-        let device = new BoltDeviceProxy(Gio.DBus.system,
-                                         BOLT_DBUS_NAME,
-                                         path);
+        let device = new BoltDeviceProxy(Gio.DBus.system, BOLT_DBUS_NAME, path);
         this.emit('device-added', device);
     }
 
@@ -187,7 +185,7 @@ class AuthRobot extends Signals.EventEmitter {
 
         this._enrolling = true;
         GLib.idle_add(GLib.PRIORITY_DEFAULT,
-                      this._enrollDevicesIdle.bind(this));
+            this._enrollDevicesIdle.bind(this));
     }
 
     async _enrollDevicesIdle() {
@@ -259,7 +257,7 @@ class Indicator extends SystemIndicator {
     _ensureSource() {
         if (!this._source) {
             this._source = new MessageTray.Source(_('Thunderbolt'),
-                                                  'thunderbolt-symbolic');
+                'thunderbolt-symbolic');
             this._source.connect('destroy', () => (this._source = null));
 
             Main.messageTray.add(this._source);
index c050ce1b2d2a20bb7cd3b28ac6c92fcb8a01d07b..a606e70be04cd56d500d5b8e6d428195bb96caf2 100644 (file)
@@ -190,8 +190,9 @@ class UserWidget extends St.BoxLayout {
             this._label = new UserWidgetLabel(user);
             this.add_child(this._label);
 
-            this._label.bind_property('label-actor', this, 'label-actor',
-                                      GObject.BindingFlags.SYNC_CREATE);
+            this._label.bind_property('label-actor',
+                this, 'label-actor',
+                GObject.BindingFlags.SYNC_CREATE);
 
             this._user.connectObject(
                 'notify::is-loaded', this._updateUser.bind(this),
index 579577082d39540f0a10d2441fd2fa10e7dace74..30da3002c4bb6209a25242003abc0a8843845c2f 100644 (file)
@@ -196,17 +196,17 @@ class WorkspaceTracker {
 
         let workspaceManager = global.workspace_manager;
         workspaceManager.connect('notify::n-workspaces',
-                                 this._nWorkspacesChanged.bind(this));
+            this._nWorkspacesChanged.bind(this));
         workspaceManager.connect('workspaces-reordered', () => {
             this._workspaces.sort((a, b) => a.index() - b.index());
         });
         global.window_manager.connect('switch-workspace',
-                                      this._queueCheckWorkspaces.bind(this));
+            this._queueCheckWorkspaces.bind(this));
 
         global.display.connect('window-entered-monitor',
-                               this._windowEnteredMonitor.bind(this));
+            this._windowEnteredMonitor.bind(this));
         global.display.connect('window-left-monitor',
-                               this._windowLeftMonitor.bind(this));
+            this._windowLeftMonitor.bind(this));
 
         this._workspaceSettings = new Gio.Settings({schema_id: 'org.gnome.mutter'});
         this._workspaceSettings.connect('changed::dynamic-workspaces', this._queueCheckWorkspaces.bind(this));
@@ -897,12 +897,12 @@ export class WindowManager {
             Main.osdWindowManager.show(monitorIndex, icon, label, null);
         });
 
-        this._gsdWacomProxy = new GsdWacomProxy(Gio.DBus.session, GSD_WACOM_BUS_NAME,
-                                                GSD_WACOM_OBJECT_PATH,
-                                                (proxy, error) => {
-                                                    if (error)
-                                                        log(error.message);
-                                                });
+        this._gsdWacomProxy = new GsdWacomProxy(Gio.DBus.session,
+            GSD_WACOM_BUS_NAME, GSD_WACOM_OBJECT_PATH,
+            (proxy, error) => {
+                if (error)
+                    log(error.message);
+            });
 
         global.display.connect('pad-mode-switch', (display, pad, _group, _mode) => {
             let labels = [];
@@ -1243,8 +1243,9 @@ export class WindowManager {
             let [success, geom] = actor.meta_window.get_icon_geometry();
             if (success) {
                 actor.set_position(geom.x, geom.y);
-                actor.set_scale(geom.width / actor.width,
-                                geom.height / actor.height);
+                actor.set_scale(
+                    geom.width / actor.width,
+                    geom.height / actor.height);
             } else {
                 let monitor = Main.layoutManager.monitors[actor.meta_window.get_monitor()];
                 if (!monitor) {
index 6ffe9469e9db4434cd09233c75cc4c1fcd33ceb1..28246fce6f4a1b4526ab43905cc96b70e4927efa 100644 (file)
@@ -1350,7 +1350,7 @@ class Workspace extends St.Widget {
         let clone = new WindowPreview(metaWindow, this, this._overviewAdjustment);
 
         clone.connect('selected',
-                      this._onCloneSelected.bind(this));
+            this._onCloneSelected.bind(this));
         clone.connect('drag-begin', () => {
             Main.overview.beginWindowDrag(metaWindow);
         });
index de1a0ae5ea0cb7355ca1bd9bb26eaf33966cd326..206ef5dee8f02d6a896cccd6318c19af2ab93a15 100644 (file)
@@ -904,7 +904,7 @@ export const ThumbnailsBox = GObject.registerClass({
                 // workspace while we wait for the startup sequence to load.
                 let workspaceManager = global.workspace_manager;
                 Main.wm.keepWorkspaceAlive(workspaceManager.get_workspace_by_index(newWorkspaceIndex),
-                                           WORKSPACE_KEEP_ALIVE_TIME);
+                    WORKSPACE_KEEP_ALIVE_TIME);
             }
 
             // Start the animation on the workspace (which is actually
@@ -998,8 +998,9 @@ export const ThumbnailsBox = GObject.registerClass({
         for (let k = start; k < start + count; k++) {
             let metaWorkspace = workspaceManager.get_workspace_by_index(k);
             let thumbnail = new WorkspaceThumbnail(metaWorkspace, this._monitorIndex);
-            thumbnail.setPorthole(this._porthole.x, this._porthole.y,
-                                  this._porthole.width, this._porthole.height);
+            thumbnail.setPorthole(
+                this._porthole.x, this._porthole.y,
+                this._porthole.width, this._porthole.height);
             this._thumbnails.push(thumbnail);
             this.add_actor(thumbnail);
 
index a14ee5bcf3fb139303e52a24c7bc6dd1fa2c263e..70317e10040e6d7c3f02a555d556b58b33a40022 100644 (file)
@@ -102,10 +102,10 @@ export class XdndHandler extends Signals.EventEmitter {
             if (pickedActor._delegate && pickedActor._delegate.handleDragOver) {
                 let [r_, targX, targY] = pickedActor.transform_stage_point(x, y);
                 let result = pickedActor._delegate.handleDragOver(this,
-                                                                  dragEvent.dragActor,
-                                                                  targX,
-                                                                  targY,
-                                                                  global.get_current_time());
+                    dragEvent.dragActor,
+                    targX,
+                    targY,
+                    global.get_current_time());
                 if (result != DND.DragMotionResult.CONTINUE)
                     return;
             }
index dc8e9926e71a17b26ab4b27f0ae1e82fb94ef03a..afa9ac7d8fd138ce0db3da355002ad240ae264b7 100644 (file)
@@ -1,12 +1,5 @@
 rules:
   eqeqeq: off
-  indent:
-    - error
-    - 4
-    - ignoredNodes:
-      - 'CallExpression[callee.object.name=GObject][callee.property.name=registerClass] > ClassExpression:first-child'
-      CallExpression:
-        arguments: first
   jsdoc/check-alignment: off
   jsdoc/check-param-names: off
   jsdoc/check-tag-names: off